conf

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	C                 Conf
	ListenAddrLock    sync.Once
	PoolSizeLock      sync.Once
	SchedulerAddrLock sync.Once
	MysqlAddrLock     sync.Once
	MysqlPortLock     sync.Once
	DbNameLock        sync.Once
	DbUserLock        sync.Once
	DbPWDLock         sync.Once
	DebugLock         sync.Once
	UseK8SLock        sync.Once
)

Functions

func AliyunAccessKeyID

func AliyunAccessKeyID() string

func AliyunAccessKeySecret

func AliyunAccessKeySecret() string

func AliyunSmsMonitorTemplateCode

func AliyunSmsMonitorTemplateCode() string

AliyunSmsMonitorTemplateCode 监控的短信通知模版code

func AliyunSmsSignName

func AliyunSmsSignName() string

func AliyunVmsMonitorCalledShowNumber

func AliyunVmsMonitorCalledShowNumber() string

AliyunVmsMonitorCalledShowNumber 监控的语音通知被呼显示号码

func AliyunVmsMonitorTtsCode

func AliyunVmsMonitorTtsCode() string

AliyunVmsMonitorTtsCode 监控的语音通知模版code

func BundleUserID

func BundleUserID() string

func DbName

func DbName() string

func DbPWD

func DbPWD() string

func DbUser

func DbUser() string

func Debug

func Debug() bool

func ErdaSystemFQDN

func ErdaSystemFQDN() string

ErdaSystemFQDN

func ListenAddr

func ListenAddr() string

func MysqlAddr

func MysqlAddr() string

func MysqlPort

func MysqlPort() string

func PoolSize

func PoolSize() int

func Proxy

func Proxy() string

func SMTPInsecureSkipVerify

func SMTPInsecureSkipVerify() string

func SchedulerAddr

func SchedulerAddr() string

func SmtpDisplayUser

func SmtpDisplayUser() string

func SmtpHost

func SmtpHost() string

func SmtpIsSSL

func SmtpIsSSL() string

func SmtpPassword

func SmtpPassword() string

func SmtpPort

func SmtpPort() string

func SmtpUser

func SmtpUser() string

func UseK8S

func UseK8S() bool

Types

type Conf

type Conf struct {
	ListenAddr     string `default:":9528" env:"LISTEN_ADDR"`
	PoolSize       int    `default:"100" env:"POOL_SIZE"`
	SchedulerAddr  string `default:"127.0.0.1:6666" env:"SCHEDULER_ADDR"`
	MysqlAddr      string `default:"" env:"MYSQL_HOST"`
	MysqlPort      string `default:"" env:"MYSQL_PORT"`
	DbName         string `default:"dice-test" env:"MYSQL_DATABASE"`
	DbUser         string `default:"dice" env:"MYSQL_USERNAME"`
	DbPWD          string `default:"Hello1234" env:"MYSQL_PASSWORD"`
	Debug          bool   `default:"false" env:"DEBUG"`
	UseK8S         bool   `env:"DICE_CLUSTER_TYPE"`
	ErdaSystemFQDN string `env:"ERDA_SYSTEM_FQDN"`
}

Jump to

Keyboard shortcuts

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