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 ¶
ZerologLevel log level to zerolog value
Click to show internal directories.
Click to hide internal directories.