middleware

package
v0.0.0-...-45e8f3b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After

func After() context.Handler

可以做统一响应处理 比如打印日志记录响应结果...

func Before

func Before() context.Handler

func Cors

func Cors() context.Handler

func Jwt

func Jwt() context.Handler

* Authorization:bearer xxxxxxxxxxx

func Limiter

func Limiter() context.Handler

限制每秒请求数量

func Log

func Log() context.Handler

func PermissionAdmin

func PermissionAdmin() context.Handler

for admin

func PermissionUser

func PermissionUser() context.Handler

for login user

Types

This section is empty.

Jump to

Keyboard shortcuts

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