examples

command
v0.0.0-...-8b05a81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL