Documentation ¶
Index ¶
- func Close(vm *VariableManager)
- type HistoryManager
- type HistoryVar
- type VariableManager
- func (vm *VariableManager) CreateBucket(bucket string)
- func (vm *VariableManager) Get(bucket, name string) interface{}
- func (vm *VariableManager) GetAll(bucket string) map[string]interface{}
- func (vm *VariableManager) GetDB() *bolt.DB
- func (vm *VariableManager) GetJson(bucket, name string) []byte
- func (vm *VariableManager) GetRange(bucket, start, end string) interface{}
- func (vm *VariableManager) Set(bucket, name string, value interface{}) error
- func (vm *VariableManager) SetAll(bucket string, content []byte) error
- func (vm *VariableManager) SetJson(bucket, name, value string) error
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 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
Click to show internal directories.
Click to hide internal directories.