Help us shape the future of Go! Take the 2026 Go Developer Survey

jetstream

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.BulkStore
	// contains filtered or unexported fields
}

StateStore is a nats jetstream KV state store.

func (*StateStore) Close added in v1.12.0

func (js *StateStore) Close() error

func (*StateStore) Delete

func (js *StateStore) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete performs a delete operation.

func (*StateStore) Features

func (js *StateStore) Features() []state.Feature

func (*StateStore) Get

Get retrieves state with a key.

func (*StateStore) GetComponentMetadata added in v1.10.1

func (js *StateStore) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

func (*StateStore) Init

func (js *StateStore) Init(_ context.Context, metadata state.Metadata) error

Init does parse metadata and establishes connection to nats broker.

func (*StateStore) Set

func (js *StateStore) Set(ctx context.Context, 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