Documentation ¶
Index ¶
Constants ¶
View Source
const ( Endp = "127.0.0.1:2379" Timeout = 5 * time.Second )
View Source
const ( Addr = "127.0.0.1:6379" Passwd = "" )
Variables ¶
View Source
var (
ENotFound = errors.New("not found")
)
Functions ¶
func IsENotFound ¶
Types ¶
type KVEngineEtcd ¶
type KVEngineEtcd struct {
// contains filtered or unexported fields
}
func NewETCDKV ¶
func NewETCDKV() *KVEngineEtcd
func (*KVEngineEtcd) Close ¶
func (kv *KVEngineEtcd) Close() error
func (*KVEngineEtcd) Delete ¶
func (kv *KVEngineEtcd) Delete(key string) error
func (*KVEngineEtcd) Watch ¶
func (kv *KVEngineEtcd) Watch(prefix string)
type KVEngineRedis ¶
type KVEngineRedis struct {
// contains filtered or unexported fields
}
func NewRedisKV ¶
func NewRedisKV() *KVEngineRedis
func (*KVEngineRedis) Close ¶
func (kv *KVEngineRedis) Close() error
func (*KVEngineRedis) Delete ¶
func (kv *KVEngineRedis) Delete(key string) error
Click to show internal directories.
Click to hide internal directories.