examples/

directory
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0

README

Examples

Each subdirectory is a self-contained scenario. The server and client binaries are run separately; the smoke runner at internal/cmd/examplesmoke exercises every example end-to-end.

Directory Spec § Port
submit-and-stream §7.1, §8.2 7811
delegate §10 7812
resume §6.3 7813
idempotent-retry §7.2 7814
lease-violation §9.3 7815
cancel §7.4 7816
stdio §4.2 n/a
vendor-extensions §15 7818
custom-auth §6.1 7819
heartbeat §6.4 7820
ack-backpressure §6.5 7821
list-jobs §6.6 7822
subscribe §7.6 7823
agent-versions §7.5 7824
lease-expires-at §9.5 7825
cost-budget §9.6 7826
progress §8.2.1 7827
result-chunk §8.4 7828
tracing §11 7829
nethttp-routes §4.1 7830
chi-routes §4.1 7831

Run an example:

go run ./examples/submit-and-stream/server &
go run ./examples/submit-and-stream/client

Directories

Path Synopsis
ack-backpressure
client command
server command
agent-versions
client command
server command
cancel
client command
server command
chi-routes
client command
server command
cost-budget
client command
server command
custom-auth
client command
server command
heartbeat
client command
server command
idempotent-retry
client command
server command
internal
demo
Package demo provides shared helpers for the examples — addr resolution and a tiny "log fatal on error" idiom.
Package demo provides shared helpers for the examples — addr resolution and a tiny "log fatal on error" idiom.
lease-expires-at
client command
server command
lease-violation
client command
server command
list-jobs
client command
server command
nethttp-routes
client command
server command
progress
client command
server command
provisioned-credentials
client command
server command
result-chunk
client command
server command
stdio
agent command
client command
submit-and-stream
client command
server command
subscribe
client command
server command
tracing
client command
server command
vendor-extensions
client command
server command

Jump to

Keyboard shortcuts

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