cfg

package
v0.0.0-...-70044d4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliOssConfig []string
View Source
var CanvasUrl string
View Source
var CheckPermissionCodeServerStateMap = sync.Map{}
View Source
var CheckServerStateMap = map[string]bool{}
View Source
var ConfigParam = ozzo.New()
View Source
var Configuration map[string]interface{}
View Source
var ConnectSocketInfo = sync.Map{}
View Source
var DataLog *logrus.Logger
View Source
var DefaultPageSize = strconv.Itoa(10)
View Source
var LogDebug *logrus.Logger
View Source
var LogHttp *logrus.Logger
View Source
var LogInfo *logrus.Logger
View Source
var LogKey *logrus.Logger
View Source
var LogRpc *logrus.Logger
View Source
var ManualLog *logrus.Logger
View Source
var RabbitServerUrl string
View Source
var ServerBootStrapId = uuid.Must(uuid.NewV4())
View Source
var SqlLog *logrus.Logger
View Source
var XOrmLog *log.SqlLogger

Functions

func GetConfig

func GetConfig() *ozzo.Config

func ParseConfig

func ParseConfig(args ParamLike)

func ParseConfigEx

func ParseConfigEx(args ParamLike) map[string]interface{}

func ReadYamlFile

func ReadYamlFile(filename string) map[string]interface{}

func SetRabbitServer

func SetRabbitServer()

Types

type MapConfig

type MapConfig struct{}

type OzzConfig

type OzzConfig struct{}
var OzConfig OzzConfig

func (*OzzConfig) GetAccessKeySecret

func (*OzzConfig) GetAccessKeySecret() string

func (*OzzConfig) GetCanvasUrl

func (*OzzConfig) GetCanvasUrl() string

func (*OzzConfig) GetCentralHost

func (*OzzConfig) GetCentralHost() string

func (*OzzConfig) GetConfig

func (*OzzConfig) GetConfig() *ozzoConfig.Config

func (*OzzConfig) GetCryptoOption

func (*OzzConfig) GetCryptoOption() bool

func (*OzzConfig) GetDBAuthUrl

func (*OzzConfig) GetDBAuthUrl() string

func (*OzzConfig) GetDBResourceUrl

func (*OzzConfig) GetDBResourceUrl() string

func (*OzzConfig) GetDialect

func (*OzzConfig) GetDialect() string

func (*OzzConfig) GetForgetUrl

func (*OzzConfig) GetForgetUrl() string

func (*OzzConfig) GetHookServerHost

func (*OzzConfig) GetHookServerHost() string

func (*OzzConfig) GetOssAccessKeyId

func (*OzzConfig) GetOssAccessKeyId() string

func (*OzzConfig) GetOssEntPoint

func (*OzzConfig) GetOssEntPoint() string

func (*OzzConfig) GetRPCUrl

func (*OzzConfig) GetRPCUrl() string

func (*OzzConfig) GetSMTPHost

func (*OzzConfig) GetSMTPHost() string

func (*OzzConfig) GetSMTPPassword

func (*OzzConfig) GetSMTPPassword() string

func (*OzzConfig) GetSMTPPort

func (*OzzConfig) GetSMTPPort() int

func (*OzzConfig) GetSMTPUsername

func (*OzzConfig) GetSMTPUsername() string

func (*OzzConfig) GetServerBindPort

func (*OzzConfig) GetServerBindPort(projectName string) string

func (*OzzConfig) GetSmtpHost

func (*OzzConfig) GetSmtpHost() string

func (*OzzConfig) GetSubHookServerHost

func (*OzzConfig) GetSubHookServerHost(queryPath string) string

func (*OzzConfig) GetTokenHour

func (*OzzConfig) GetTokenHour() int64

func (*OzzConfig) GetValidationHost

func (*OzzConfig) GetValidationHost() string

func (*OzzConfig) IsProduction

func (*OzzConfig) IsProduction() bool

type ParamLike

type ParamLike struct {
	Config  string
	Env     string
	Mapping string `arg:"--mapping"`
	Verbose bool   `arg:"-v" help:"verbosity level"`
}

Jump to

Keyboard shortcuts

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