Versions in this module Expand all Collapse all v0 v0.8.0 Jun 24, 2017 Changes in this version + 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 struct + Field string + Op string + Value interface{} + 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 interface + AddValue func(bucket string, key []byte, value []byte) error + AddValueCompress func(bucket string, key []byte, value []byte) error + Close func() error + DeleteBucket func(bucket string, key []byte, value []byte) error + DeleteValue func(bucket string, key []byte, value []byte) error + GetCompressedValue func(bucket string, key []byte) []byte + GetValue func(bucket string, key []byte) []byte + Open func() error + type ORM interface + Count func(o interface{}) (int, error) + Delete func(o interface{}) error + Get func(key string, value interface{}, to interface{}) error + Save func(o interface{}) error + Search func(o interface{}, q *Query) (error, Result) + Update func(o interface{}) error + type Query struct + Conds []*Cond + From int + RawQuery string + Size int + Sort string + type Result struct + Result interface{} + Total int + func Search(o interface{}, q *Query) (error, Result)