Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsulServices = make(map[string]*ConsulManager)
Functions ¶
func BalanceInit ¶
func BalanceInit()
func ConsulManagerInit ¶
func ConsulManagerInit()
func GetBalanceAddr ¶
func GetConsulSrv ¶
func GetConsulSrv(name string) map[string]*ConsulManager
func RegisterBalance ¶
func RegisterBalance(name string)
Types ¶
type ConsulManager ¶
func GetConsulManager ¶
func GetConsulManager() *ConsulManager
func (*ConsulManager) DeRegisterSrv ¶
func (c *ConsulManager) DeRegisterSrv(SrvId string) error
取消consul注册的服务
func (*ConsulManager) FindAllSrvs ¶
func (c *ConsulManager) FindAllSrvs() error
func (*ConsulManager) RegisterApiSrv ¶
func (c *ConsulManager) RegisterApiSrv() error
Click to show internal directories.
Click to hide internal directories.