Documentation
¶
Overview ¶
Package config implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- func FileConfigPath(serviceName, filename string) string
- func New(client *api.Client, opts ...Option) (config.Source, error)
- func NewConsulConfig(ccfg *configv1.SourceConfig, ss ...config.SourceSetting) (config.Config, error)
- func SyncConfig(ccfg *configv1.SourceConfig, v any, ss ...config.SourceSetting) error
- type Option
Constants ¶
View Source
const (
DefaultPathName = "bootstrap.json"
)
Variables ¶
This section is empty.
Functions ¶
func FileConfigPath ¶ added in v0.0.9
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 ¶
Click to show internal directories.
Click to hide internal directories.