config

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GddBanner     envVariable = "GDD_BANNER"
	GddBannerText envVariable = "GDD_BANNER_TEXT"
	// GddLogLevel please reference logrus.ParseLevel
	GddLogLevel      envVariable = "GDD_LOG_LEVEL"
	GddLogPath       envVariable = "GDD_LOG_PATH"
	GddGraceTimeout  envVariable = "GDD_GRACE_TIMEOUT"
	GddWriteTimeout  envVariable = "GDD_WRITE_TIMEOUT"
	GddReadTimeout   envVariable = "GDD_READ_TIMEOUT"
	GddIdleTimeout   envVariable = "GDD_IDLE_TIMEOUT"
	GddOutput        envVariable = "GDD_OUTPUT"
	GddRouteRootPath envVariable = "GDD_ROUTE_ROOT_PATH"
	GddServiceName   envVariable = "GDD_SERVICE_NAME"
	GddHost          envVariable = "GDD_HOST"
	// GddPort http port
	GddPort envVariable = "GDD_PORT"
	// 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"

	GddMemSeed envVariable = "GDD_MEM_SEED"
	// GddMemName unique name of this node in cluster. if not provided, hostname will be used instead
	GddMemName envVariable = "GDD_MEM_NAME"
	// GddMemHost specify AdvertiseAddr attribute of memberlist config struct.
	// if GddMemHost starts with dot such as .seed-svc-headless.default.svc.cluster.local,
	// it will be prefixed by hostname such as seed-2.seed-svc-headless.default.svc.cluster.local
	// for supporting k8s stateful service
	GddMemHost envVariable = "GDD_MEM_HOST"
	// GddMemPort if empty or not set, an available port will be chosen randomly. recommend specifying a port
	GddMemPort envVariable = "GDD_MEM_PORT"
	// GddMemDeadTimeout dead node will be removed from node map if not received refute messages from it in GddMemDeadTimeout second
	// expose GossipToTheDeadTime property of memberlist.Config
	GddMemDeadTimeout envVariable = "GDD_MEM_DEAD_TIMEOUT"
	// GddMemSyncInterval local node will synchronize states from other random node every GddMemSyncInterval second
	// expose PushPullInterval property of memberlist.Config
	GddMemSyncInterval envVariable = "GDD_MEM_SYNC_INTERVAL"
	// GddMemReclaimTimeout dead node will be replaced with new node with the same name but different full address in GddMemReclaimTimeout second
	// expose DeadNodeReclaimTime property of memberlist.Config
	GddMemReclaimTimeout envVariable = "GDD_MEM_RECLAIM_TIMEOUT"
)

Variables

View Source
var (
	GddVer, BuildUser, BuildTime string
)

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