flags

package
v0.0.0-...-52f154f Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Version kong.VersionFlag
	AppName string `help:"Stage the name of the service." env:"APP_NAME"`
	Stage   string `help:"Stage the software is deployed." env:"STAGE"`
	Branch  string `help:"Branch used to build software." env:"BRANCH"`
}

API api related flags passing in env variables

type ServerAPI

type ServerAPI struct {
	API
	Addr     string `help:"Address to bind our TLS listener." env:"ADDR" default:":9443"`
	CertFile string `help:"Certificate used to bind our TLS listener." env:"CERT_FILE" default:".certs/hotwire.localhost.pem"`
	KeyFile  string `help:"Private Key used to bind our TLS listener." env:"KEY_FILE" default:".certs/hotwire.localhost.key"`
	Level    string `help:"The log level used for loggers." env:"LEVEL" default:"info" enum:"info,debug,warn,error"`
	Local    bool   `env:"LOCAL"`
}

ServerAPI server api related flags passing in env variables

func (*ServerAPI) ZerologLevel

func (sa *ServerAPI) ZerologLevel() zerolog.Level

ZerologLevel log level to zerolog value

Jump to

Keyboard shortcuts

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