config

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GddBanner     envVariable = "GDD_BANNER"
	GddBannerText envVariable = "GDD_BANNERTEXT"
	// GddLogLevel please reference logrus.ParseLevel
	GddLogLevel      envVariable = "GDD_LOGLEVEL"
	GddLogPath       envVariable = "GDD_LOGPATH"
	GddGraceTimeout  envVariable = "GDD_GRACETIMEOUT"
	GddWriteTimeout  envVariable = "GDD_WRITETIMEOUT"
	GddReadTimeout   envVariable = "GDD_READTIMEOUT"
	GddIdleTimeout   envVariable = "GDD_IDLETIMEOUT"
	GddOutput        envVariable = "GDD_OUTPUT"
	GddRouteRootPath envVariable = "GDD_ROUTE_ROOT_PATH"

	GddServiceName envVariable = "GDD_SERVICE_NAME"
	// GddNodeName if not provided, Memberlist will use hostname instead
	GddNodeName envVariable = "GDD_NODE_NAME"

	GddHost envVariable = "GDD_HOST"
	// GddPort http port
	GddPort    envVariable = "GDD_PORT"
	GddMemPort envVariable = "GDD_MEM_PORT"
	GddBaseUrl envVariable = "GDD_BASE_URL"
	GddSeed    envVariable = "GDD_SEED"
	// Accept 'mono' for monolith mode or 'micro' for microservice mode
	GddMode envVariable = "GDD_MODE"
	// GddManage if true, it will add built-in apis with /go-doudou path prefix for online api document and service status monitor etc.
	GddManage envVariable = "GDD_MANAGE_ENABLE"
	// GddManageUser manage api endpoint http basic auth user
	GddManageUser envVariable = "GDD_MANAGE_USER"
	// GddManagePass manage api endpoint http basic auth password
	GddManagePass envVariable = "GDD_MANAGE_PASS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel logrus.Level

func (*LogLevel) Decode

func (ll *LogLevel) Decode(value string) error

type Switch

type Switch bool

func (*Switch) Decode

func (s *Switch) Decode(value string) error

Jump to

Keyboard shortcuts

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