Documentation ¶
Index ¶
- func GetConsulKV(cli *api.Client, remotePath string, conf any) (*viper.Viper, error)
- func NewConsulClient(remoteHost, remoteToken string) (*api.Client, error)
- func NewConsulConfigSource(remoteHost, remotePath, remoteToken string, conf any) error
- func NewDiscovery(cul *conf.Consul, endpoint string) (*grpc.ClientConn, error)
- func NewRegistry(cul *conf.Consul) (registry.Registrar, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsulKV ¶
GetConsulKV
func NewConsulConfigSource ¶
NewConsulConfigSource 创建一个远程配置源 - Consul
func NewDiscovery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.