consulutil

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConsulClient

func GetConsulClient(consulManager ConsulManager) (*consulapi.Client, error)

func ToConsulConfig

func ToConsulConfig(cfg *configpb.Consul) *consulpkg.Config

ToConsulConfig ...

Types

type ConsulManager

type ConsulManager interface {
	Enable() bool
	GetClient() (*consulapi.Client, error)
	Close() error
}

func NewConsulManager

func NewConsulManager(conf *configpb.Consul) (ConsulManager, error)

func NewSingletonConsulManager

func NewSingletonConsulManager(conf *configpb.Consul) (ConsulManager, error)

Jump to

Keyboard shortcuts

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