package
Version:
v0.0.0-...-385473e
Opens a new window with list of versions in this module.
Published: May 14, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Authz 是 Gin 中间件,用来进行请求授权.
Cors 是一个 Gin 中间件,用来设置 options 请求的返回头,然后退出中间件链,并结束请求(浏览器跨域设置).
NoCache 是一个 Gin 中间件,用来禁止客户端缓存 HTTP 请求的返回结果.
RequestID 是一个 Gin 中间件,用来在每一个 HTTP 请求的 context, response 中注入 `X-Request-ID` 键值对.
Secure 是一个 Gin 中间件,用来添加一些安全和资源访问相关的 HTTP 头.
Auther 用来定义授权接口实现.
sub: 操作主题,obj:操作对象, act:操作
Source Files
¶
Click to show internal directories.
Click to hide internal directories.