| 26 | } |
| 27 | |
| 28 | type 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. |
| 48 | func NewStore(opts ...store.Option) store.Store { |
nothing calls this directly
no outgoing calls
no test coverage detected