config

package
v0.0.0-...-8018142 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MPL-2.0 Imports: 15 Imported by: 5

README

config

GoDoc

Documentation

Overview

Package config is the top-level configuration parsing package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderConfig

func RenderConfig(configFlag, renderFlag string) error

RenderConfig renders the templated config in configFlag to renderFlag.

Types

type Config

type Config struct {
	Discovery   discovery.Backend
	LogConfig   *logger.Config
	StopTimeout int
	Jobs        []*jobs.Config
	Watches     []*watches.Config
	Telemetry   *telemetry.Config
	Control     *control.Config
}

Config contains the parsed config elements

func LoadConfig

func LoadConfig(configFlag string) (*Config, error)

LoadConfig loads, parses, and validates the configuration

func (*Config) InitLogging

func (cfg *Config) InitLogging() error

InitLogging configure logrus with the new log config if available

Directories

Path Synopsis
Package decode contains helper functions for turning mapstructure interfaces into simpler structs for configs
Package decode contains helper functions for turning mapstructure interfaces into simpler structs for configs
Package logger manages the configuration of logging
Package logger manages the configuration of logging
Package services contains miscellaneous configuration validation for service names and IP addresses registered with Consul
Package services contains miscellaneous configuration validation for service names and IP addresses registered with Consul
Package template provides rendering for the configuration files and the extra functions for use by the golang templating engine.
Package template provides rendering for the configuration files and the extra functions for use by the golang templating engine.
Package timing provides functions for parsing time configurations into time.Duration instances
Package timing provides functions for parsing time configurations into time.Duration instances

Jump to

Keyboard shortcuts

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