config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogConfig

type LogConfig struct {
	AccessFile        string
	ErrorFile         string
	AccessLevel       string `default:"info"`
	ErrorLevel        string `default:"info"`
	FileMaxAge        int    `default:"48"`
	FileRotateInteval int    `default:"1"`
	PrettyPrint       bool   `default:"true"`
	ShowSQL           bool   `default:"true"`
}
var LogConf *LogConfig

type ServerConfig

type ServerConfig struct {
	DbDriver                 string `default:"mysql"`
	DbSources                []string
	TableNamePrefix          string   `default:"tb_"`
	UserId                   string   `default:"1100"`
	ListenAddr               string   `default:":8080"`
	KongDebug                bool     `default:"false"`
	KongDebugAddr            string   `default:"http://localhost:8001"`
	ReqTimeout               int      `default:"60"`
	RegisterSliceSize        int      `default:"10"`
	RegisterInterval         int      `default:"5"`
	TargetActiveOffline      bool     `default:"true"`
	ApiRegisterTimeout       int      `default:"15"`
	StaleTargetCheckInterval int      `default:"15"`
	StaleTargetKeepTime      int      `default:"900"`
	UnexpectDeployInterval   int      `default:"3600"`
	BuiltinPlugins           []string `default:""`
	NextUpstreams            string   `default:"error timeout http_429 non_idempotent"`
	OfflineEnv               []string `default:"dev,test,staging"`
	OfflineQps               int      `default:"2000"`
	SpotSendPort             int      `default:"7082"`
	SpotAddonName            string   `default:"ApiGateway"`
	SpotMetricName           string   `default:"application_http"`
	SpotTagsHeaderPrefix     string   `default:"terminus-request-bg-"`
	SpotHostIpKey            string   `default:"HOST_IP"`
	SpotInstanceKey          string   `default:"DICE_ADDON"`
	SubDomainSplit           string   `default:"-"`
	HasRouteInfo             bool     `default:"true"`
	UseAdminEndpoint         bool     `default:"false"`
	AoneAppName              string   `default:""`
	ClusterName              string   `default:""`
	ClusterUIType            string   `default:""`
	TenantGroupKey           string   `default:"58dcbf490ef3"`
	CenterDomainNameKeepList []string `default:"collector,gittar,hepa,openapi,soldier,uc,dice,uc-adaptor,nexus-sys,sonar-sys"`
	EdgeDomainNameKeepList   []string `default:"soldier,nexus-sys"`
}
var ServerConf *ServerConfig

Jump to

Keyboard shortcuts

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