package
0.0.0-20230514050628-385473e6b8ae
Repository: https://github.com/qpphust/blog.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Authz 是 Gin 中间件,用来进行请求授权.
Cors 是一个 Gin 中间件,用来设置 options 请求的返回头,然后退出中间件链,并结束请求(浏览器跨域设置).
NoCache 是一个 Gin 中间件,用来禁止客户端缓存 HTTP 请求的返回结果.
RequestID 是一个 Gin 中间件,用来在每一个 HTTP 请求的 context, response 中注入 `X-Request-ID` 键值对.
Secure 是一个 Gin 中间件,用来添加一些安全和资源访问相关的 HTTP 头.

# Interfaces

Auther 用来定义授权接口实现.