Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsulResolverInit ¶
func CreateConsulRegisterClient ¶
create a consul client for register and unregister service to consul csAddr is the address of consul server this function should only call once
func DeregisterServiceFromConsul ¶
func DeregisterServiceFromConsul(info ServiceInfo) error
API for user to deregister a service to consul server
func RegisterServiceToConsul ¶
func RegisterServiceToConsul(info ServiceInfo) error
API for user to register a service to consul server
func SignalNotify ¶
func SignalNotify()
User need call SignalNotify when received signal to let clientMonitor goroutine deregister services
Types ¶
Click to show internal directories.
Click to hide internal directories.