state

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("state: not found")
)

Functions

This section is empty.

Types

type DB

type DB interface {
	Update(func(tx *bbolt.Tx) error) error
	View(func(tx *bbolt.Tx) error) error
}

type Service

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

func NewService

func NewService(db DB, cleanStart bool) (Service, error)

func (Service) Get

func (s Service) Get(key string) map[string]interface{}

func (Service) Set

func (s Service) Set(key string, v interface{}) error

Jump to

Keyboard shortcuts

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