middleware

package
v5.1.9-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: LGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIVersion

func APIVersion(next http.Handler) http.Handler

APIVersion api版本

func FullToken

func FullToken(next http.Handler) http.Handler

FullToken token api校验

func InitPlugin

func InitPlugin(next http.Handler) http.Handler

InitPlugin 实现plugin init中间件

func InitService

func InitService(next http.Handler) http.Handler

InitService 实现serviceinit中间件

func InitTenant

func InitTenant(next http.Handler) http.Handler

InitTenant 实现中间件

func Proxy

func Proxy(next http.Handler) http.Handler

Proxy 反向代理中间件

func SetLog

func SetLog(next http.Handler) http.Handler

SetLog SetLog

func Token

func Token(next http.Handler) http.Handler

Token 简单token验证

func WrapEL

func WrapEL(f http.HandlerFunc, target, optType string, synType int) http.HandlerFunc

WrapEL wrap eventlog, handle event log before and after process

Types

type ContextKey

type ContextKey string

ContextKey ctx key type

type License

type License struct {
	// contains filtered or unexported fields
}

License -

func NewLicense

func NewLicense(cfg *option.Config) *License

NewLicense -

func (*License) Verify

func (l *License) Verify(next http.Handler) http.Handler

Verify parses the license to make the content inside it take effect.

Jump to

Keyboard shortcuts

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