config

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package config implements the functions, types, and interfaces for the module.

Index

Constants

View Source
const (
	DefaultPathName = "bootstrap.json"
)

Variables

This section is empty.

Functions

func FileConfigPath added in v0.0.9

func FileConfigPath(serviceName, filename string) string

func New added in v0.0.5

func New(client *api.Client, opts ...Option) (config.Source, error)

New returns a new consul config source

func NewConsulConfig

func NewConsulConfig(ccfg *configv1.SourceConfig, ss ...config.SourceSetting) (config.Config, error)

NewConsulConfig create a new consul config.

func SyncConfig added in v0.0.9

func SyncConfig(ccfg *configv1.SourceConfig, v any, ss ...config.SourceSetting) error

Types

type Option added in v0.0.5

type Option = consul.Option

func WithContext added in v0.0.5

func WithContext(ctx context.Context) Option

WithContext with registry context

func WithPath added in v0.0.5

func WithPath(p string) Option

WithPath with registry path

Jump to

Keyboard shortcuts

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