Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Factories = map[string]func(conf Conf) (DB, error){}
Factories of database
Functions ¶
func U64U64ToByte ¶
U64U64ToByte converts two uint64 to bytes
Types ¶
type Bucket ¶
type Bucket interface { Put([]interface{}) error Get(offset uint64, length int, results interface{}) error DelBeforeID(uint64) error DelBeforeTS(time.Time) error SetKV(k string, v interface{}) error GetKV(k string, result interface{}) error DelKV(k string) error ListKV(results interface{}) error Close(clean bool) (err error) }
Bucket the backend database
type Conf ¶
type Conf struct { Driver string `yaml:"driver" json:"driver" default:"boltdb"` Source string `yaml:"source" json:"source" default:"var/lib/baetyl/broker.db"` }
Conf the configuration of database
Click to show internal directories.
Click to hide internal directories.