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

Function WithStreamListSubject

jetstream/jetstream_options.go:595–600  ·  view source on GitHub ↗

WithStreamListSubject can be used to filter results of ListStreams and StreamNames requests to only streams that have given subject in their configuration.

(subject string)

Source from the content-addressed store, hash-verified

593// StreamNames requests to only streams that have given subject in their
594// configuration.
595func WithStreamListSubject(subject string) StreamListOpt {
596 return func(req *streamsRequest) error {
597 req.Subject = subject
598 return nil
599 }
600}
601
602// WithMsgID sets the message ID used for deduplication.
603func WithMsgID(id string) PublishOpt {

Callers 2

TestListStreamsFunction · 0.92
TestStreamNamesFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestListStreamsFunction · 0.74
TestStreamNamesFunction · 0.74