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

package middleware

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

Index

Package Files

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 License Uses

func License(next http.Handler) http.Handler

License license验证

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验证

type ContextKey Uses

type ContextKey string

ContextKey ctx key type

Package middleware imports 16 packages (graph) and is imported by 3 packages. Updated 2019-04-21. Refresh now. Tools for package owners.