config

package module
v0.0.0-...-0b7b361 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const CONFIG_FILE_FLAG = "config.file"

Variables

This section is empty.

Functions

func DecodeConfiguration

func DecodeConfiguration(file string, config interface{}) error

func IgnoredFlag

func IgnoredFlag(f *flag.FlagSet, name, message string)

IgnoredFlag ignores set value, without any warning

func ParseConfigFileParameter

func ParseConfigFileParameter(args []string) (configFile string)

Parse -config.file option via separate flag set, to avoid polluting default one and calling flag.Parse on it twice.

func ParseConfiguration

func ParseConfiguration(cfg Configuration) (*filesystem.Watcher, error)

Types

type Configuration

type Configuration interface {
	RegisterFlags(*flag.FlagSet)
	Validate() error
}

Directories

Path Synopsis
auth0 module
cloudflare module
consul module
database module
env module
filesystem module
logger module
nomad module
oidc module
server module
spaces module
stripe module
tailscale module
telemetry module

Jump to

Keyboard shortcuts

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