mstore

package
v0.0.0-...-dae269f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type For

type For[Value any] meta.TypedKey[Value]

For is a Store for the provided value

func (For[Value]) Delete

func (f For[Value]) Delete(ctx context.Context, m *MStore) error

func (For[Value]) Get

func (f For[Value]) Get(ctx context.Context, m *MStore) (value Value, err error)

func (For[Value]) GetAll

func (f For[Value]) GetAll(ctx context.Context, m *MStore) (values []Value, err error)

func (For[Value]) GetOrSet

func (f For[Value]) GetOrSet(ctx context.Context, m *MStore, dflt Value) (value Value, err error)

func (For[Value]) Set

func (f For[Value]) Set(ctx context.Context, m *MStore, value Value) error

func (For[Value]) SetAll

func (f For[Value]) SetAll(ctx context.Context, m *MStore, values ...Value) error

type MStore

type MStore struct {
	ingredient.Base
	*meta.Storage
}

MStore implements metadata storage for this WissKI

Jump to

Keyboard shortcuts

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