Documentation ¶
Overview ¶
Author: Landers Github: Landers1037 Date: 2020-02 Name: blog
Author: Landers Github: Landers1037 Date: 2020-03 Name: blog
Author: Landers Github: Landers1037 Date: 2020-03 Name: blog
Author: Landers Github: Landers1037 Date: 2020-03 Name: blog
Index ¶
- func AdminAuth() gin.HandlerFunc
- func AllowIe() gin.HandlerFunc
- func BlogLogger() gin.HandlerFunc
- func Cache(name string) interface{}
- func CheckCache(name string) string
- func CheckToken(c *gin.Context) bool
- func Cors() gin.HandlerFunc
- func PostCache(p int) ([]response.RES_POST, int)
- func PostView() gin.HandlerFunc
- func SimpleAuth() gin.HandlerFunc
- func TryFile() gin.HandlerFunc
- func Uv() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostView ¶
func PostView() gin.HandlerFunc
PostView 文章开启阅读访问量统计 防止频繁写库 按时写入 防止并发场景下多次计时 采用每n分钟刷新机制
func TryFile ¶
func TryFile() gin.HandlerFunc
TryFile 模拟try file机制 对于使用前端处理路由的分离式设计程序使用 默认api的路由为本服务的 其他路由不由本服务处理
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.