Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IRegistry ¶
type IRegistry interface {
Exists(path string) (bool, error)
CanWirteDataInDir() bool
WatchChildren(path string) (data chan registry.ChildrenWatcher, err error)
WatchValue(path string) (data chan registry.ValueWatcher, err error)
GetChildren(path string) (paths []string, version int32, err error)
GetValue(path string) (data []byte, version int32, err error)
CreatePersistentNode(path string, data string) (err error)
CreateTempNode(path string, data string) (err error)
CreateSeqNode(path string, data string) (rpath string, err error)
Update(path string, data string, version int32) (err error)
Delete(path string) error
GetSeparator() string
Close() error
}
IRegistry 注册中心接口,通过扩展支持zookeeper,consul,etcd
Click to show internal directories.
Click to hide internal directories.