Skip to content

Commit 172b459

Browse files
committed
Improve print statements in examples
1 parent 78eb148 commit 172b459

File tree

9 files changed

+14
-12
lines changed

9 files changed

+14
-12
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,12 @@ The `acapy.WebhookHandler` is web framework agnostic and reads the topic from th
420420
- [ ] godoc
421421
- [ ] Proper error handling
422422
- [x] Admin API Key
423-
- [ ] Tracing via global config
423+
- [x] Tracing via global config
424424
- [ ] Automation of steps via global config
425425
- [ ] Payment decorators https://github.com/hyperledger/aries-rfcs/tree/master/features/0075-payment-decorators
426426
- [ ] Constructors for JSON-LD types
427427
- [ ] Add types for roles, states, predicates
428+
- [ ] Allow for a connection-less credential exchange
428429
- [ ] Allow for a connection-less proof by making a QR code of a payload below. The base64 payload is the result of your call to `/present-proof/create-request`.
429430
```json
430431
{

examples/connecting/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ func (app *App) StartWebserver() {
166166
})
167167

168168
r.HandleFunc("/webhooks/topic/{topic}/", webhookHandler).Methods(http.MethodPost)
169-
fmt.Printf("Listening on %v\n", app.port)
169+
fmt.Printf("Listening on http://localhost:%d\n", app.port)
170+
fmt.Printf("ACA-py Admin API on http://localhost:%d\n", app.port+2)
170171

171172
app.server = &http.Server{
172173
Addr: fmt.Sprintf(":%d", app.port),

examples/issue_credential/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ func (app *App) StartWebserver() {
232232
})
233233

234234
r.HandleFunc("/webhooks/topic/{topic}/", webhookHandler).Methods(http.MethodPost)
235-
fmt.Printf("Listening on %v\n", app.port)
235+
fmt.Printf("Listening on http://localhost:%d\n", app.port)
236+
fmt.Printf("ACA-py Admin API on http://localhost:%d\n", app.port+2)
236237

237238
app.server = &http.Server{
238239
Addr: fmt.Sprintf(":%d", app.port),

examples/issue_credential_v2/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ldej/go-acapy-client/examples/issue_credential
1+
module github.com/ldej/go-acapy-client/examples/issue_credential_v2
22

33
go 1.15
44

examples/issue_credential_v2/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ func (app *App) StartWebserver() {
234234
})
235235

236236
r.HandleFunc("/webhooks/topic/{topic}/", webhookHandler).Methods(http.MethodPost)
237-
fmt.Printf("Listening on %v\n", app.port)
237+
fmt.Printf("Listening on http://localhost:%d\n", app.port)
238+
fmt.Printf("ACA-py Admin API on http://localhost:%d\n", app.port+2)
238239

239240
app.server = &http.Server{
240241
Addr: fmt.Sprintf(":%d", app.port),

examples/present_proof/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ func (app *App) StartWebserver() {
310310
fmt.Println(r.URL.Path)
311311
})
312312
r.HandleFunc("/webhooks/topic/{topic}/", webhookHandler).Methods(http.MethodPost)
313-
fmt.Printf("Listening on %v\n", app.port)
313+
fmt.Printf("Listening on http://localhost:%d\n", app.port)
314+
fmt.Printf("ACA-py Admin API on http://localhost:%d\n", app.port+2)
314315

315316
app.server = &http.Server{
316317
Addr: fmt.Sprintf(":%d", app.port),

examples/revocation/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ func (app *App) StartWebserver() {
355355
fmt.Println(r.URL.Path)
356356
})
357357
r.HandleFunc("/webhooks/topic/{topic}/", webhookHandler).Methods(http.MethodPost)
358-
fmt.Printf("Listening on %v\n", app.port)
358+
fmt.Printf("Listening on http://localhost:%d\n", app.port)
359+
fmt.Printf("ACA-py Admin API on http://localhost:%d\n", app.port+2)
359360

360361
app.server = &http.Server{
361362
Addr: fmt.Sprintf(":%d", app.port),

go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module github.com/ldej/go-acapy-client
22

3-
go 1.15
4-
5-
require github.com/gorilla/mux v1.8.0 // indirect
3+
go 1.16

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
2-
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=

0 commit comments

Comments
 (0)