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

Function mapStreamToObjectStore

jetstream/object.go:1621–1633  ·  view source on GitHub ↗
(js *jetStream, pushJS nats.JetStreamContext, bucket string, stream Stream)

Source from the content-addressed store, hash-verified

1619}
1620
1621func mapStreamToObjectStore(js *jetStream, pushJS nats.JetStreamContext, bucket string, stream Stream) *obs {
1622 info := stream.CachedInfo()
1623
1624 obs := &obs{
1625 name: bucket,
1626 js: js,
1627 pushJS: pushJS,
1628 streamName: info.Config.Name,
1629 stream: stream,
1630 }
1631
1632 return obs
1633}

Callers 4

CreateObjectStoreMethod · 0.85
UpdateObjectStoreMethod · 0.85
ObjectStoreMethod · 0.85

Calls 1

CachedInfoMethod · 0.65

Tested by

no test coverage detected