module

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OssName       = "oss"
	SessionName   = "session"
	Oauth2Name    = "oauth2"
	SmsName       = "sms"
	MailName      = "mail"
	DingName      = "ding"
	CacheName     = "cache"
	RedisName     = "redis"
	QrcodeName    = "qrcode"
	TokenName     = "token"
	MysqlName     = "mysql"
	LogName       = "logger"
	MongoName     = "mongo"
	RabbitmqName  = "rabbitmq"
	Authenticator = "authenticator"
)
View Source
const ConfigPrefix = "beego."

Variables

order invokers

Functions

This section is empty.

Types

type ConfigStore

type ConfigStore struct {
	Ini   *ini.File
	Viper *viper.Viper
}
var Config *ConfigStore

global config

type Descriptor

type Descriptor struct {
	Name    string
	Invoker Invoker
}

Descriptor

type Duration

type Duration struct {
	time.Duration
}

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

type Invoker

type Invoker interface {
	// Init cfg returns parse cfg error.
	InitCfg(ds datasource.Datasource) error
	// Init Caller returns init caller error
	Run() error
}

InvokerRegister

type InvokerFunc

type InvokerFunc func() Invoker

Jump to

Keyboard shortcuts

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