MCPcopy
hub / github.com/micro/go-micro / natsStore

Struct natsStore

store/nats-js-kv/nats.go:28–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28type natsStore struct {
29 sync.Once
30 sync.RWMutex
31
32 encoding string
33 ttl time.Duration
34 storageType nats.StorageType
35 description string
36
37 opts store.Options
38 nopts nats.Options
39 jsopts []nats.JSOpt
40 kvConfigs []*nats.KeyValueConfig
41
42 conn *nats.Conn
43 js nats.JetStreamContext
44 buckets *hashmap.Map[string, nats.KeyValue]
45}
46
47// NewStore will create a new NATS JetStream Object Store.
48func NewStore(opts ...store.Option) store.Store {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected