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

Function setReplyPrefix

jetstream/jetstream.go:498–506  ·  view source on GitHub ↗
(nc *nats.Conn, jsOpts *JetStreamOptions)

Source from the content-addressed store, hash-verified

496)
497
498func setReplyPrefix(nc *nats.Conn, jsOpts *JetStreamOptions) {
499 jsOpts.replyPrefix = nats.InboxPrefix
500 if nc.Opts.InboxPrefix != "" {
501 jsOpts.replyPrefix = nc.Opts.InboxPrefix + "."
502 }
503 // Add 1 for the dot separator.
504 jsOpts.replyPrefixLen = len(jsOpts.replyPrefix) + aReplyTokensize + 1
505
506}
507
508// NewWithAPIPrefix returns a new JetStream instance and sets the API prefix to be used in requests to JetStream API.
509// The API prefix will be used in API requests to JetStream, e.g. <prefix>.STREAM.INFO.<stream>.

Callers 3

NewFunction · 0.85
NewWithAPIPrefixFunction · 0.85
NewWithDomainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected