WithStreamListSubject can be used to filter results of ListStreams and StreamNames requests to only streams that have given subject in their configuration.
(subject string)
| 593 | // StreamNames requests to only streams that have given subject in their |
| 594 | // configuration. |
| 595 | func 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. |
| 603 | func WithMsgID(id string) PublishOpt { |
no outgoing calls