MCPcopy
hub / github.com/nats-io/nats.go / ContextOpt

Struct ContextOpt

js.go:1276–1278  ·  view source on GitHub ↗

ContextOpt is an option used to set a context.Context.

Source from the content-addressed store, hash-verified

1274
1275// ContextOpt is an option used to set a context.Context.
1276type ContextOpt struct {
1277 context.Context
1278}
1279
1280func (ctx ContextOpt) configureJSContext(opts *jsOpts) error {
1281 opts.ctx = ctx

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected