Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDataNotFound = errors.New("no data found for this key")
)
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 BatchBucket ¶ added in v2.2.3
type BatchBucket interface { Set(offset uint64, value []byte) error Get(offset uint64, length int, op func([]byte, uint64) error) error MaxOffset() (uint64, error) DelBeforeID(uint64) error DelBeforeTS(ts uint64) error Close(clean bool) (err error) }
BatchBucket the backend database
type Conf ¶
type Conf struct { Driver string `yaml:"driver" json:"driver" default:"pebble"` Path string `yaml:"path" json:"path" default:"var/lib/baetyl/db"` }
Conf the configuration of database
Click to show internal directories.
Click to hide internal directories.