Help us shape the future of Go! Take the 2026 Go Developer Survey

store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct {
	Folder string
}

func (Local) Close

func (l Local) Close() error

func (Local) Connect

func (l Local) Connect() error

func (Local) Delete

func (l Local) Delete(key []byte) error

func (Local) Get

func (l Local) Get(key []byte) ([]byte, error)

func (Local) Put

func (l Local) Put(key []byte, value []byte) error

type Store

type Store interface {
	Connect() error
	Put(key, value []byte) error
	Get(key []byte) ([]byte, error)
	Delete(key []byte) error
	Close() error
}

func NewLocal

func NewLocal(folder string) Store

Jump to

Keyboard shortcuts

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