Documentation ¶
Index ¶
- func AddListener(serviceName string, clusters []string, ...) error
- func LogoutService(ip string, port uint64, serviceName string, clusterName string) (bool, error)
- func RegisterService(ip string, port uint64, serviceName string, clusterName string, ...) (bool, error)
- func SelectAllServices(serviceName string, clusters []string) ([]model.Instance, error)
- func SelectServices(serviceName string, clusters []string, healthy bool) ([]model.Instance, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddListener ¶
func AddListener(serviceName string, clusters []string, callback func(services []model.SubscribeService, err error)) error
监听服务
func LogoutService ¶
注销服务
func RegisterService ¶
func RegisterService(ip string, port uint64, serviceName string, clusterName string, metadata map[string]string) (bool, error)
注册服务
func SelectAllServices ¶
获取所有注册服务
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.