Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Master ¶
func OnWatch ¶
func NewMaster(endpoints []string, watchPath string) (*Master, error) { Monitor Nodes
func (*Master) AddNode ¶
func (m *Master) AddNode(key string, info *ServiceMeta)
func (*Master) WatchNodes ¶
func (m *Master) WatchNodes()
type Service ¶
type Service struct { Name string Meta ServiceMeta // contains filtered or unexported fields }
type ServiceMeta ¶
type ServiceMeta struct { IP string Ext interface{} }
the detail of service
func GetServiceMeta ¶
func GetServiceMeta(ev *clientv3.Event) *ServiceMeta
Click to show internal directories.
Click to hide internal directories.