config

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectHomeDir string
	ReqListenPort  int

	// gin
	GinLogFile string
	GinMode    string

	// mysql api
	MysqlHost   string
	MysqlPort   int
	MysqlUser   string
	MysqlPasswd string

	//lock cluster
	LockClusterId int

	// log
	ProjectLogDir    string
	ProjectLogModule string
	ProjectLogLevel  string

	MonitorDomain string

	*LoginConfig
}

func LoadConfig

func LoadConfig() *Config

type LoginConfig

type LoginConfig struct {
	SsoLoginUrl    string
	SsoLogoutUrl   string
	SsoCookieName  string
	SsoDomainName  string
	SsoExcludePath []string
	SsoVerifyUrl   string

	AppDomainName string
	AppUrl        string
	AppName       string
	AppToken      string
}

Jump to

Keyboard shortcuts

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