Documentation ¶
Index ¶
- func AddValue(bucket string, key []byte, value []byte) error
- func AddValueCompress(bucket string, key []byte, value []byte) error
- func Count(o interface{}) (int, error)
- func Create(o interface{}) error
- func Delete(o interface{}) error
- func DeleteBucket(bucket string, key []byte, value []byte) error
- func DeleteValue(bucket string, key []byte, value []byte) error
- func Get(o interface{}) error
- func GetBy(field string, value interface{}, to interface{}) error
- func GetCompressedValue(bucket string, key []byte) []byte
- func GetValue(bucket string, key []byte) []byte
- func RegisterDBConnection(h *gorm.DB)
- func RegisterKVStoreHandler(h KVStore)
- func Save(o interface{}) error
- func Update(o interface{}) error
- type Cond
- func And(conds ...*Cond) []*Cond
- func Eq(field string, value interface{}) *Cond
- func Ge(field string, value interface{}) *Cond
- func Gt(field string, value interface{}) *Cond
- func Le(field string, value interface{}) *Cond
- func Lt(field string, value interface{}) *Cond
- func NotEq(field string, value interface{}) *Cond
- type KVStore
- type ORM
- type Query
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCompressedValue ¶
func RegisterDBConnection ¶
func RegisterKVStoreHandler ¶
func RegisterKVStoreHandler(h KVStore)
Types ¶
type KVStore ¶
type KVStore interface { Open() error Close() error GetValue(bucket string, key []byte) []byte GetCompressedValue(bucket string, key []byte) []byte AddValueCompress(bucket string, key []byte, value []byte) error AddValue(bucket string, key []byte, value []byte) error DeleteValue(bucket string, key []byte, value []byte) error DeleteBucket(bucket string, key []byte, value []byte) error }
Click to show internal directories.
Click to hide internal directories.