Documentation ¶
Index ¶
- func NewJetstreamStateStore(logger logger.Logger) state.Store
- type StateStore
- func (js *StateStore) Delete(req *state.DeleteRequest) error
- func (js *StateStore) Features() []state.Feature
- func (js *StateStore) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (js *StateStore) Init(metadata state.Metadata) error
- func (js *StateStore) Ping() error
- func (js *StateStore) Set(req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StateStore ¶
type StateStore struct { state.DefaultBulkStore // contains filtered or unexported fields }
StateStore is a nats jetstream KV state store.
func (*StateStore) Delete ¶
func (js *StateStore) Delete(req *state.DeleteRequest) error
Delete performs a delete operation.
func (*StateStore) Features ¶
func (js *StateStore) Features() []state.Feature
func (*StateStore) Get ¶
func (js *StateStore) Get(req *state.GetRequest) (*state.GetResponse, error)
Get retrieves state with a key.
func (*StateStore) Init ¶
func (js *StateStore) Init(metadata state.Metadata) error
Init does parse metadata and establishes connection to nats broker.
func (*StateStore) Ping ¶
func (js *StateStore) Ping() error
func (*StateStore) Set ¶
func (js *StateStore) Set(req *state.SetRequest) error
Set stores value for a key.
Click to show internal directories.
Click to hide internal directories.