Documentation ¶
Overview ¶
Package consul @Author hubo 2024/9/26 14:06:00 register service to consul
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeRegisterService ¶
func DeRegisterService(localConfig *config.ServiceLocalConfig) error
func LoadCfgFromConsul ¶
func LoadCfgFromConsul[T config.IAppConfig](consulAddr, serviceName string) (*T, error)
LoadCfgFromConsul 从 consul 获取指定服务的配置
func RegisterService ¶
func RegisterService(localConfig *config.ServiceLocalConfig) error
RegisterService 注册服务
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.