Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionTypeCreate = iota ActionTypeUpdate ActionTypeDelete )
Variables ¶
This section is empty.
Functions ¶
func RegisterRegistry ¶
Types ¶
type ActionType ¶
type ActionType = int
type EvaRegistry ¶
type EvaRegistry struct {
// contains filtered or unexported fields
}
func NewEvaRegistry ¶
func NewEvaRegistry(c clientv3.Config) *EvaRegistry
func (*EvaRegistry) DeRegister ¶
func (r *EvaRegistry) DeRegister(name, net, id string) error
func (*EvaRegistry) Register ¶
func (r *EvaRegistry) Register(name, net, id, addr string, opts ...Option) error
func (*EvaRegistry) Watcher ¶
func (r *EvaRegistry) Watcher() (Watcher, error)
type Registry ¶
type Registry interface { // Register, register service Register(name, net, id, addr string, opts ...Option) error // UnRegister, unregister service DeRegister(name, net, id string) error // GetService, get services by name, which may have more than one version GetAddrs(name, proto string) ([]string, error) // Watcher, returns a watcher, which watches events on NamingService backend Watcher() (Watcher, error) }
Registry registry interacts with the remote Nameing Service
func GetRegistry ¶
Click to show internal directories.
Click to hide internal directories.