flags

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPAddrFlagName = "http.addr"
	HTTPPortFlagName = "http.port"
)

Variables

View Source
var (
	HTTPAddrFlag = &cli.StringFlag{
		Name:    HTTPAddrFlagName,
		Usage:   "Address the server should listen on",
		Value:   "0.0.0.0",
		EnvVars: prefixEnvVars("HTTP_ADDR"),
	}
	HTTPPortFlag = &cli.IntFlag{
		Name:    HTTPPortFlagName,
		Usage:   "Port the server should listen on",
		Value:   8080,
		EnvVars: prefixEnvVars("HTTP_PORT"),
	}
)
View Source
var Flags []cli.Flag

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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