Documentation ¶
Overview ¶
each caller should provide 1. etcd addr, prefix 2. same constructor to unmarshal data from etcd
each caller should provide 1. etcd addr, prefix 2. same constructor to unmarshal data from etcd
Index ¶
Constants ¶
View Source
const (
ErrorKeyNotFound = 100
)
ErrorCode
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DConf ¶
type DConf interface { Get(key string) (string, error) Set(key, value string, preExist ...bool) error Del(key string) error Keys(prefix string) []string Data(prefix string) map[string]string }
DConf 接口
type DConf3 ¶
type DConf3 struct {
// contains filtered or unexported fields
}
DConf3 synchronizes etcd with in-memory data structures
type DConfv2 ¶
type DConfv2 struct {
// contains filtered or unexported fields
}
DConfv2 synchronizes etcd with in-memory data structures
Click to show internal directories.
Click to hide internal directories.