json

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrNoSuchKey

func ErrNoSuchKey(k keyvalue.Key) error

Types

type JsonStore

type JsonStore struct {
	// contains filtered or unexported fields
}

func NewJsonStore

func NewJsonStore(f types.FilePath) (*JsonStore, error)

func (*JsonStore) Clear

func (j *JsonStore) Clear() error

func (*JsonStore) Exists

func (j *JsonStore) Exists(k keyvalue.Key) (bool, error)

func (*JsonStore) Get

func (j *JsonStore) Get(k keyvalue.Key, v any) error

func (*JsonStore) List

func (j *JsonStore) List() ([]keyvalue.Key, error)

func (*JsonStore) Remove

func (j *JsonStore) Remove(k keyvalue.Key) error

func (*JsonStore) Set

func (j *JsonStore) Set(k keyvalue.Key, v keyvalue.Value) error

Jump to

Keyboard shortcuts

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