Versions in this module Expand all Collapse all v0 v0.2.0 Jun 6, 2020 Changes in this version + func Backends() []string + func Register(name string, backend Backend) error type Backend + func New(backend string, source string, memory bool) (Backend, error) + Initialize func(source string, memory bool) error v0.1.0 May 4, 2020 Changes in this version + type Backend interface + Count func(bucket string) (int, error) + Create func(bucket string, key string, model interface{}) error + Delete func(bucket string, key string) error + Drop func(bucket string) error + Get func(bucket string, model interface{}) (*map[string]interface{}, error) + Read func(bucket string, key string, model interface{}) error + Update func(bucket string, key string, model interface{}) error + func NewBadgerDB(source string, memory bool) (Backend, error) + func NewBboltDB(source string) (Backend, error) + func NewBitcaskDB(source string) (Backend, error) + func NewBoltDB(source string) (Backend, error) + func NewDiskvDB(source string) (Backend, error) + func NewGoCache(source string, memory bool) (Backend, error) + func NewLevelDB(source string) (Backend, error) + type BadgerBackend struct + Connection *badger.DB + Memory bool + Source string + func (database *BadgerBackend) Count(bucket string) (int, error) + func (database *BadgerBackend) Create(bucket string, key string, model interface{}) error + func (database *BadgerBackend) Delete(bucket string, key string) error + func (database *BadgerBackend) Drop(bucket string) error + func (database *BadgerBackend) Get(bucket string, model interface{}) (*map[string]interface{}, error) + func (database *BadgerBackend) Read(bucket string, key string, model interface{}) error + func (database *BadgerBackend) Update(bucket string, key string, model interface{}) error + type BboltBackend struct + Connection *bbolt.DB + Source string + func (database *BboltBackend) Count(bucket string) (int, error) + func (database *BboltBackend) Create(bucket string, key string, model interface{}) error + func (database *BboltBackend) Delete(bucket string, key string) error + func (database *BboltBackend) Drop(bucket string) error + func (database *BboltBackend) Get(bucket string, model interface{}) (*map[string]interface{}, error) + func (database *BboltBackend) Read(bucket string, key string, model interface{}) error + func (database *BboltBackend) Update(bucket string, key string, model interface{}) error + type BitcaskBackend struct + Connection *bitcask.Bitcask + Source string + func (database *BitcaskBackend) Count(bucket string) (int, error) + func (database *BitcaskBackend) Create(bucket string, key string, model interface{}) error + func (database *BitcaskBackend) Delete(bucket string, key string) error + func (database *BitcaskBackend) Drop(bucket string) error + func (database *BitcaskBackend) Get(bucket string, model interface{}) (*map[string]interface{}, error) + func (database *BitcaskBackend) Read(bucket string, key string, model interface{}) error + func (database *BitcaskBackend) Update(bucket string, key string, model interface{}) error + type BoltBackend struct + Connection *bolt.DB + Source string + func (database *BoltBackend) Count(bucket string) (int, error) + func (database *BoltBackend) Create(bucket string, key string, model interface{}) error + func (database *BoltBackend) Delete(bucket string, key string) error + func (database *BoltBackend) Drop(bucket string) error + func (database *BoltBackend) Get(bucket string, model interface{}) (*map[string]interface{}, error) + func (database *BoltBackend) Read(bucket string, key string, model interface{}) error + func (database *BoltBackend) Update(bucket string, key string, model interface{}) error + type DiskvBackend struct + Connection *diskv.Diskv + Source string + func (database *DiskvBackend) Count(bucket string) (int, error) + func (database *DiskvBackend) Create(bucket string, key string, model interface{}) error + func (database *DiskvBackend) Delete(bucket string, key string) error + func (database *DiskvBackend) Drop(bucket string) error + func (database *DiskvBackend) Get(bucket string, model interface{}) (*map[string]interface{}, error) + func (database *DiskvBackend) Read(bucket string, key string, model interface{}) error + func (database *DiskvBackend) Update(bucket string, key string, model interface{}) error + type GoCacheBackend struct + Connection *cache.Cache + Memory bool + Mux sync.RWMutex + Source string + func (database *GoCacheBackend) Count(bucket string) (int, error) + func (database *GoCacheBackend) Create(bucket string, key string, model interface{}) error + func (database *GoCacheBackend) Delete(bucket string, key string) error + func (database *GoCacheBackend) Drop(bucket string) error + func (database *GoCacheBackend) Get(bucket string, model interface{}) (*map[string]interface{}, error) + func (database *GoCacheBackend) Read(bucket string, key string, model interface{}) error + func (database *GoCacheBackend) Update(bucket string, key string, model interface{}) error + type LevelBackend struct + Connection *leveldb.DB + Source string + func (database *LevelBackend) Count(bucket string) (int, error) + func (database *LevelBackend) Create(bucket string, key string, model interface{}) error + func (database *LevelBackend) Delete(bucket string, key string) error + func (database *LevelBackend) Drop(bucket string) error + func (database *LevelBackend) Get(bucket string, model interface{}) (*map[string]interface{}, error) + func (database *LevelBackend) Read(bucket string, key string, model interface{}) error + func (database *LevelBackend) Update(bucket string, key string, model interface{}) error