jetstream

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJetstreamStateStore

func NewJetstreamStateStore(logger logger.Logger) state.Store

NewJetstreamStateStore returns a new nats jetstream KV state store.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL