consulx

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(c *Config) (*api.Client, error)

func GetClient

func GetClient(ctx context.Context, keys ...string) *api.Client

func GetConfig

func GetConfig() components.ConfigMap[*Config]

func GetGrpcConn

func GetGrpcConn(ctx context.Context, entryPoint string, keys ...string) (*grpc.ClientConn, error)

func Init

func Init(cm components.ConfigMap[*Config]) (func() error, error)

func IsHealth

func IsHealth() (err error)

Types

type Config

type Config struct {
	Address string `yaml:"address" json:"address" `
}

func (*Config) SetDefault

func (c *Config) SetDefault()

Jump to

Keyboard shortcuts

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