db

package
v0.0.0-...-db2f6b3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSON

func GetJSON(db Storage, key string, v interface{}) (err error)

func PutJSON

func PutJSON(db Transaction, key string, v interface{}) error

Types

type Storage

type Storage interface {
	Open(key string) (io.ReadSeekCloser, error)
	Execute(func(tx Transaction) error) error
}

func Sub

func Sub(db Storage, prefix string) Storage

type Transaction

type Transaction interface {
	Put(key string, value io.Reader) error
	Delete(key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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