middleware

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT 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

func FullToken

func FullToken(next http.Handler) http.Handler

FullToken token api check

func InitApplication

func InitApplication(next http.Handler) http.Handler

InitApplication -

func InitPlugin

func InitPlugin(next http.Handler) http.Handler

InitPlugin - implement plugin init middleware

func InitService

func InitService(next http.Handler) http.Handler

InitService - implement serviceinit middleware

func InitTenant

func InitTenant(next http.Handler) http.Handler

InitTenant - implement middleware

func Proxy

func Proxy(next http.Handler) http.Handler

Proxy - reverse proxy middleware

func SetLog

func SetLog(next http.Handler) http.Handler

SetLog SetLog

func Token

func Token(next http.Handler) http.Handler

Token - simple token verification

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