store

package
v0.0.0-...-a82aedc Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(dbPath string) *Store

func (*Store) Close

func (s *Store) Close()

func (*Store) Delete

func (s *Store) Delete(key []byte, value Value) bool

func (*Store) Get

func (s *Store) Get(key []byte) (Value, bool)

func (*Store) MakeValue

func (s *Store) MakeValue(value []byte) Value

func (*Store) Set

func (s *Store) Set(key []byte, value Value) bool

type Value

type Value struct {
	Value   []byte
	Version uuid.UUID
}

Jump to

Keyboard shortcuts

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