Documentation
¶
Index ¶
- type Bolt
- func (c *Bolt) CreateTable(table string) (err error)
- func (c *Bolt) DropTable(table string) (err error)
- func (c *Bolt) GetKV(table, key string) (kv KV, err error)
- func (c *Bolt) NextID(table string) (id string, err error)
- func (c *Bolt) ScanKV(table, prefix string, logic func(key string, value []byte) bool) error
- func (c *Bolt) SetKV(table string, kvs []KV) error
- type KV
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bolt ¶
type Bolt struct {
// contains filtered or unexported fields
}
func (*Bolt) CreateTable ¶
type Store ¶
type Store interface {
CreateTable(table string) (err error)
DropTable(table string) (err error)
SetKV(table string, kvs []KV) (err error)
GetKV(table, key string) (kv KV, err error)
ScanKV(table, prefix string, logic func(key string, value []byte) bool) (err error)
NextID(table string) (id string, err error)
}
Click to show internal directories.
Click to hide internal directories.