Documentation ¶
Overview ¶
This is an example of asynchronously calling the Diagnostic service's Echo method.
Usage: go run echo_async.go 'something to echo'
The environmental variable NSYS_API_KEY must be available. If need be, also set the environmental variable NSYS_ENDPOINT to the proper value. These are in hostName:portNumber format.
This is an example of issuing synchronous echo requests round robin over a bank of connections.
Usage: go run echo_parallel.go
The environmental variable NSYS_API_KEY must be available. If need be, also set the environmental variable NSYS_ENDPOINT to the proper value. These are in hostName:portNumber format.
This is an example of synchronously calling the Diagnostic service's Echo method but doing so in parallel. It also shows some connection state tracking.
Usage: go run echo_sync.go 'something to echo'
The environmental variable NSYS_API_KEY must be available. If need be, also set the environmental variable NSYS_ENDPOINT to the proper value. These are in hostName:portNumber format.