store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package store is the long-term key-value store for application data that outlives executions, shared by clients and worker jobs. Values live in the <ns>-store bucket under <namespace>.<key>; namespaces and keys are tokens.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v1.0.0

func Delete(ctx context.Context, in *infra.Infra, ns, key string) error

Delete removes ns/key.

func Get added in v1.0.0

func Get(ctx context.Context, in *infra.Infra, ns, key string) (json.RawMessage, error)

Get returns the value under ns/key, apierr.ErrNotFound when there is none.

func Keys added in v1.0.0

func Keys(ctx context.Context, in *infra.Infra, ns string) ([]string, error)

Keys lists the keys of a namespace, sorted.

func Put added in v1.0.0

func Put(ctx context.Context, in *infra.Infra, ns, key string, value any) error

Put stores value (any JSON-encodable value) under ns/key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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