Versions in this module Expand all Collapse all v3 v3.1.2 Feb 5, 2024 Changes in this version + type Entry struct + type ServiceDiscovery struct + func NewServiceDiscovery(client *gxzookeeper.ZookeeperClient, basePath string) *ServiceDiscovery + func (sd *ServiceDiscovery) Close() + func (sd *ServiceDiscovery) DataChange(eventType remoting.Event) bool + func (sd *ServiceDiscovery) ListenServiceEvent(name string, listener remoting.DataListener) + func (sd *ServiceDiscovery) ListenServiceInstanceEvent(name, id string, listener remoting.DataListener) + func (sd *ServiceDiscovery) QueryForInstance(name string, id string) (*ServiceInstance, error) + func (sd *ServiceDiscovery) QueryForInstances(name string) ([]*ServiceInstance, error) + func (sd *ServiceDiscovery) QueryForNames() ([]string, error) + func (sd *ServiceDiscovery) ReRegisterServices() + func (sd *ServiceDiscovery) RegisterService(instance *ServiceInstance) error + func (sd *ServiceDiscovery) UnregisterService(instance *ServiceInstance) error + func (sd *ServiceDiscovery) UpdateService(instance *ServiceInstance) error + type ServiceInstance struct + Address string + ID string + Name string + Payload interface{} + Port int + RegistrationTimeUTC int64