consul

package
v0.0.0-...-a3cb3ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConsulKV

func GetConsulKV(cli *api.Client, remotePath string, conf any) (*viper.Viper, error)

GetConsulKV

func NewConsulClient

func NewConsulClient(remoteHost, remoteToken string) (*api.Client, error)

func NewConsulConfigSource

func NewConsulConfigSource(remoteHost, remotePath, remoteToken string, conf any) error

NewConsulConfigSource 创建一个远程配置源 - Consul

func NewDiscovery

func NewDiscovery(cul *conf.Consul, endpoint string) (*grpc.ClientConn, error)

func NewRegistry

func NewRegistry(cul *conf.Consul) (registry.Registrar, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL