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

Method legacyJetStream

jetstream/kv.go:887–899  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

885}
886
887func (js *jetStream) legacyJetStream() (nats.JetStreamContext, error) {
888 opts := make([]nats.JSOpt, 0)
889 if js.opts.apiPrefix != "" {
890 opts = append(opts, nats.APIPrefix(js.opts.apiPrefix))
891 }
892 if js.opts.ClientTrace != nil {
893 opts = append(opts, nats.ClientTrace{
894 RequestSent: js.opts.ClientTrace.RequestSent,
895 ResponseReceived: js.opts.ClientTrace.ResponseReceived,
896 })
897 }
898 return js.conn.JetStream(opts...)
899}
900
901func bucketValid(bucket string) bool {
902 if len(bucket) == 0 {

Callers 8

KeyValueMethod · 0.95
CreateKeyValueMethod · 0.95
UpdateKeyValueMethod · 0.95
CreateObjectStoreMethod · 0.95
UpdateObjectStoreMethod · 0.95
ObjectStoreMethod · 0.95

Calls 1

JetStreamMethod · 0.80

Tested by

no test coverage detected