kvsingle

package
v0.0.0-...-8b65fed Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value[K, V any] struct {
	Key K
	// contains filtered or unexported fields
}

func New

func New[K, V any](db kv.Store[K, V], key K) *Value[K, V]

func (*Value[K, V]) Edit

func (s *Value[K, V]) Edit(ctx context.Context, edit kv.Edit[V]) error

func (*Value[K, V]) Get

func (s *Value[K, V]) Get(ctx context.Context) (V, error)

func (*Value[K, V]) Set

func (s *Value[K, V]) Set(ctx context.Context, value V) error

Jump to

Keyboard shortcuts

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