settings

package
v0.0.0-...-163e02b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseApplicationSettings

func ParseApplicationSettings(args *AppArgs, values []string) (logger.Level, error)

ParseApplicationSettings : Helper function to handle the parsing of the @see AppArgs schema against a given slice of arguments in slice format

Types

type AppArgs

type AppArgs struct {
	Version         bool   `long:"version" description:"The application version"`
	Verbose         []bool `short:"v" long:"verbose" description:"Verbosity level"`
	Config          string `default:"config.yaml" short:"c" long:"config" description:"File path of the configuration file"`
	CertificateFile string `default:"localhost.crt" long:"certificate" description:"The path to the TLS certificate file"`
	CertificateKey  string `default:"localhost.key" long:"certificate_key" description:"The path to the TLS certificate file"`
}

Jump to

Keyboard shortcuts

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