variablemanager

package
v0.0.0-...-62dd86d Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(vm *VariableManager)

Types

type HistoryManager

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

func NewHistory

func NewHistory(url string) *HistoryManager

func (*HistoryManager) Save

func (history *HistoryManager) Save(k string, v interface{})

func (*HistoryManager) SaveWithTS

func (history *HistoryManager) SaveWithTS(k string, v interface{}, ts int64)

type HistoryVar

type HistoryVar struct {
	TS int64
	K  string
	V  interface{}
}

type VariableManager

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

func New

func New(file string) *VariableManager

func (*VariableManager) CreateBucket

func (vm *VariableManager) CreateBucket(bucket string)

func (*VariableManager) Get

func (vm *VariableManager) Get(bucket, name string) interface{}

func (*VariableManager) GetAll

func (vm *VariableManager) GetAll(bucket string) map[string]interface{}

func (*VariableManager) GetDB

func (vm *VariableManager) GetDB() *bolt.DB

func (*VariableManager) GetJson

func (vm *VariableManager) GetJson(bucket, name string) []byte

func (*VariableManager) GetRange

func (vm *VariableManager) GetRange(bucket, start, end string) interface{}

func (*VariableManager) Set

func (vm *VariableManager) Set(bucket, name string, value interface{}) error

func (*VariableManager) SetAll

func (vm *VariableManager) SetAll(bucket string, content []byte) error

func (*VariableManager) SetJson

func (vm *VariableManager) SetJson(bucket, name, value string) error

Jump to

Keyboard shortcuts

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