Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceDiscovery ¶
type ServiceDiscovery struct {
// contains filtered or unexported fields
}
func NewServiceDiscovery ¶
func NewServiceDiscovery(endpoints []string) *ServiceDiscovery
func (*ServiceDiscovery) Close ¶
func (s *ServiceDiscovery) Close() error
func (*ServiceDiscovery) DelServiceList ¶
func (s *ServiceDiscovery) DelServiceList(key string)
func (*ServiceDiscovery) GetServices ¶
func (s *ServiceDiscovery) GetServices() []string
func (*ServiceDiscovery) SetServiceList ¶
func (s *ServiceDiscovery) SetServiceList(key, val string)
func (*ServiceDiscovery) WatchService ¶
func (s *ServiceDiscovery) WatchService(prefix string) error
type ServiceRegister ¶
type ServiceRegister struct {
// contains filtered or unexported fields
}
func NewServiceRegister ¶
func NewServiceRegister(endpoints []string, key, val string, lease int64) (*ServiceRegister, error)
func (*ServiceRegister) Close ¶
func (s *ServiceRegister) Close() error
func (*ServiceRegister) ListenLeaseRespC ¶
func (s *ServiceRegister) ListenLeaseRespC()
Click to show internal directories.
Click to hide internal directories.