Versions in this module Expand all Collapse all v0 v0.1.0 Nov 10, 2019 Changes in this version + const BADGER + const COCKROACH + const TESTSTORE + const TestCreatedTime + const TestKey + const TestUpdatedTime + const TestVal + const UNDEFINED + type BadgerConnector struct + Conn *badger.DB + ConnType string + func NewBadgerConnector(cfg *config.Config) (*BadgerConnector, error) + func (c *BadgerConnector) Close() error + func (c *BadgerConnector) DBType() string + func (c *BadgerConnector) Get(key string) (*KV, error) + func (c *BadgerConnector) Set(input *KV) error + type CockroachConnector struct + ConnType string + func NewCockroachConnector(_ *config.Config) (*CockroachConnector, error) + func (c *CockroachConnector) Close() error + func (c *CockroachConnector) DBType() string + func (c *CockroachConnector) Get(key string) (*KV, error) + func (c *CockroachConnector) Set(inpuc *KV) error + type DB interface + Close func() error + DBType func() string + Get func(key string) (*KV, error) + Set func(*KV) error + func Open(cfg *config.Config) (DB, error) + type KV struct + Created *time.Time + Key string + Updated *time.Time + Value []byte + type TestStoreConnector struct + ConnType string + func NewTestStoreConnector(_ *config.Config) (*TestStoreConnector, error) + func (c *TestStoreConnector) Close() error + func (c *TestStoreConnector) DBType() string + func (c *TestStoreConnector) Get(key string) (*KV, error) + func (c *TestStoreConnector) Set(inpuc *KV) error + type UndefinedConnector struct + ConnType string + func NewUndefinedConnection(err error) (*UndefinedConnector, error) + func (c *UndefinedConnector) Close() error + func (c *UndefinedConnector) DBType() string + func (c *UndefinedConnector) Get(key string) (*KV, error) + func (c *UndefinedConnector) Set(inpuc *KV) error