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

Struct js

js.go:249–264  ·  view source on GitHub ↗

js is an internal struct from a JetStreamContext.

Source from the content-addressed store, hash-verified

247
248// js is an internal struct from a JetStreamContext.
249type js struct {
250 nc *Conn
251 opts *jsOpts
252
253 // For async publish context.
254 mu sync.RWMutex
255 rpre string
256 rsub *Subscription
257 pafs map[string]*pubAckFuture
258 stc chan struct{}
259 dch chan struct{}
260 rr *rand.Rand
261 connStatusCh chan (Status)
262 replyPrefix string
263 replyPrefixLen int
264}
265
266type jsOpts struct {
267 ctx context.Context

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected