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

Method AddStream

jsm.go:29–29  ·  view source on GitHub ↗

AddStream creates a stream.

(cfg *StreamConfig, opts ...JSOpt)

Source from the content-addressed store, hash-verified

27type JetStreamManager interface {
28 // AddStream creates a stream.
29 AddStream(cfg *StreamConfig, opts ...JSOpt) (*StreamInfo, error)
30
31 // UpdateStream updates a stream.
32 UpdateStream(cfg *StreamConfig, opts ...JSOpt) (*StreamInfo, error)

Callers 15

ExampleJetStreamContextFunction · 0.95
TestJetStreamInterfacesFunction · 0.95
ExampleJetStreamFunction · 0.65
ExampleJetStreamManagerFunction · 0.65
ExamplePubOptFunction · 0.65
ExampleMaxWaitFunction · 0.65
ExampleAckWaitFunction · 0.65
ExampleMsg_AckSyncFunction · 0.65
ExampleMsg_MetadataFunction · 0.65
ExampleAckOptFunction · 0.65
ExamplePullOptFunction · 0.65
ExampleContextFunction · 0.65

Implementers 1

jsjs.go

Calls

no outgoing calls

Tested by 15

ExampleJetStreamContextFunction · 0.76
TestJetStreamInterfacesFunction · 0.76
ExampleJetStreamFunction · 0.52
ExampleJetStreamManagerFunction · 0.52
ExamplePubOptFunction · 0.52
ExampleMaxWaitFunction · 0.52
ExampleAckWaitFunction · 0.52
ExampleMsg_AckSyncFunction · 0.52
ExampleMsg_MetadataFunction · 0.52
ExampleAckOptFunction · 0.52
ExamplePullOptFunction · 0.52
ExampleContextFunction · 0.52