consul

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ReadFromConsul bool
	Address        string
	Token          string
	Path           string
	RefreshInSecs  int
}

type ConsulReader

type ConsulReader struct {
	// contains filtered or unexported fields
}

func NewConsulReader

func NewConsulReader(ctx context.Context, config *Config) (*ConsulReader, error)

func (*ConsulReader) Read

func (a *ConsulReader) Read(ctx context.Context, conf any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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