Documentation ¶
Index ¶
- Variables
- type DBModule
- func (mod *DBModule) Close() error
- func (mod *DBModule) GetAll(prefix string) (map[string]string, error)
- func (mod *DBModule) GetJSON(key string, dst interface{}) error
- func (mod *DBModule) GetKey(key string) (string, error)
- func (mod *DBModule) Hub() *kv.Hub
- func (mod *DBModule) PutJSON(key string, data interface{}) error
- func (mod *DBModule) PutJSONBulk(kvs map[string]interface{}) error
- func (mod *DBModule) PutKey(key string, data string) error
- func (mod *DBModule) RemoveKey(key string) error
- func (mod *DBModule) Subscribe(fn kv.SubscriptionCallback, prefixes ...string) error
- type KvError
- type KvPair
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknown is returned when a response is received that doesn't match any expected outcome. ErrUnknown = fmt.Errorf("unknown error") )
Functions ¶
This section is empty.
Types ¶
type DBModule ¶ added in v0.6.2
type DBModule struct {
// contains filtered or unexported fields
}
func NewDBModule ¶ added in v0.6.2
func (*DBModule) PutJSONBulk ¶ added in v0.6.2
Click to show internal directories.
Click to hide internal directories.