Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Act namespace.WatcherAction E *endpoint.Endpoint }
Action watch data change content
type Registry ¶
type Registry interface { // Watcher watch the remote like etcd,who's data change Watcher // Register register a endpoint to etcd or other Register(e *endpoint.Endpoint) error // Deregister deregister a endpoint from etcd or other Deregister(e *endpoint.Endpoint) error // Next get one endpoint Next(scope string) (*endpoint.Endpoint, error) // List get all endpoint List() ([]*endpoint.Endpoint, error) // Name return the tool's name like "etcd" Name() string // Close close registry Close() }
func NewRegistry ¶
NewRegistry create a new registry with etcd
Click to show internal directories.
Click to hide internal directories.