module

package
v0.0.0-...-cd24349 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OssName     = "oss"
	SessionName = "session"
	Oauth2Name  = "oauth2"
	SmsName     = "sms"
	MailName    = "mail"
	DingName    = "ding"
	CacheName   = "cache"
	QrcodeName  = "qr_code"
)
View Source
const ConfigPrefix = "beego."

Variables

View Source
var OrderInvokers = []invokerAttr{
	{OssName},
	{CacheName},
	{DingName},
	{Oauth2Name},
	{SessionName},
	{SmsName},
	{MailName},
	{QrcodeName},
}

order invokers

Functions

func IsDisabled

func IsDisabled(invoker Invoker) bool

Types

type Descriptor

type Descriptor struct {
	Name    string
	Invoker Invoker
}

Descriptor

type Invoker

type Invoker interface {
	// Init cfg returns parse cfg error.
	InitCfg(cfg []byte, cfgType string) error
	// Init Caller returns init caller error
	Run() error
}

Invoker

type InvokerBackground

type InvokerBackground interface {
	RunBackground(ctx context.Context) error
}

Invoker Background

type InvokerDisable

type InvokerDisable interface {
	IsDisabled() bool
}

Invoker Enable

type InvokerFunc

type InvokerFunc func() Invoker

Jump to

Keyboard shortcuts

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