Documentation ¶
Index ¶
- Variables
- func GetData(callback func([]byte), id string, buckets ...string) func(*bbolt.Tx) error
- func Last(callback func([]byte), prefixID []byte, buckets ...string) func(*bbolt.Tx) error
- func List(callback func(data map[string][]byte)) func(*bbolt.Tx) error
- func ListKeys(callback func(list [][]byte), buckets ...string) func(*bbolt.Tx) error
- func PersistData(id string, data []byte, update bool, buckets ...string) func(*bbolt.Tx) error
- func QueryData(ctx context.Context, callback func(data *QueryType), prefixID []byte, ...) func(*bbolt.Tx) error
- func RemoveData(id string, buckets ...string) func(*bbolt.Tx) error
- type DB
- type DBservice
- type MsgAckDeleteData
- type MsgAckGetData
- type MsgAckList
- type MsgAckListKeys
- type MsgAckPersistData
- type MsgCloseDB
- type MsgDeleteData
- type MsgErrorDB
- type MsgFlushFilesystem
- type MsgGetData
- type MsgInsertData
- type MsgList
- type MsgListKeys
- type MsgNoAckDeleteData
- type MsgNoAckGetData
- type MsgNoAckList
- type MsgNoAckListKyes
- type MsgNoAckPersistData
- type MsgOpenDB
- type MsgOpenedDB
- type MsgQueryData
- type MsgQueryNext
- type MsgQueryResponse
- type MsgUpdateData
- type QueryType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDataUpdateNotAllow = errDataUpdateNotAllow()
View Source
var ErrDatabaseNotFound = errDatabaseNotFound()
Functions ¶
func PersistData ¶
Types ¶
type DBservice ¶
type DBservice interface { Insert(id string, data []byte, buckets ...string) (string, error) Update(id string, data []byte, buckets ...string) (string, error) Get(id string, buckets ...string) ([]byte, error) Delete(id string, buckets ...string) error Query(prefixID string, reverse bool, query func(data []byte) bool, buckets ...string) error List() (map[string][]byte, error) ListKeys(buckets ...string) ([][]byte, error) }
func NewService ¶
type MsgAckDeleteData ¶
type MsgAckGetData ¶
type MsgAckGetData struct {
Data []byte
}
type MsgAckList ¶
type MsgAckListKeys ¶
type MsgAckListKeys struct {
Data [][]byte
}
type MsgAckPersistData ¶
type MsgCloseDB ¶
type MsgCloseDB struct{}
type MsgDeleteData ¶
type MsgErrorDB ¶
type MsgErrorDB struct{}
type MsgFlushFilesystem ¶
type MsgFlushFilesystem struct{}
type MsgGetData ¶
type MsgInsertData ¶
type MsgListKeys ¶
type MsgListKeys struct {
Buckets []string
}
type MsgNoAckDeleteData ¶
type MsgNoAckDeleteData struct {
Error string
}
type MsgNoAckGetData ¶
type MsgNoAckGetData struct {
Error string
}
type MsgNoAckList ¶
type MsgNoAckList struct {
Error string
}
type MsgNoAckListKyes ¶
type MsgNoAckListKyes struct {
Error string
}
type MsgNoAckPersistData ¶
type MsgNoAckPersistData struct {
Error string
}
type MsgOpenedDB ¶
type MsgOpenedDB struct{}
type MsgQueryData ¶
type MsgQueryNext ¶
type MsgQueryNext struct{}
type MsgQueryResponse ¶
type MsgUpdateData ¶
Click to show internal directories.
Click to hide internal directories.