rainbond: github.com/goodrain/rainbond/api/middleware Index | Files

package middleware

import "github.com/goodrain/rainbond/api/middleware"

Index

Package Files

license.go middleware.go token.go version.go

func APIVersion Uses

func APIVersion(next http.Handler) http.Handler

APIVersion api版本

func FullToken Uses

func FullToken(next http.Handler) http.Handler

FullToken token api校验

func InitPlugin Uses

func InitPlugin(next http.Handler) http.Handler

InitPlugin 实现plugin init中间件

func InitService Uses

func InitService(next http.Handler) http.Handler

InitService 实现serviceinit中间件

func InitTenant Uses

func InitTenant(next http.Handler) http.Handler

InitTenant 实现中间件

func Proxy Uses

func Proxy(next http.Handler) http.Handler

Proxy 反向代理中间件

func SetLog Uses

func SetLog(next http.Handler) http.Handler

SetLog SetLog

func Token Uses

func Token(next http.Handler) http.Handler

Token 简单token验证

func WrapEL Uses

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

WrapEL wrap eventlog, handle event log before and after process

type ContextKey Uses

type ContextKey string

ContextKey ctx key type

type License Uses

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

License -

func NewLicense Uses

func NewLicense(cfg *option.Config) *License

NewLicense -

func (*License) Verify Uses

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

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

Package middleware imports 20 packages (graph) and is imported by 3 packages. Updated 2019-10-15. Refresh now. Tools for package owners.