Versions in this module Expand all Collapse all v0 v0.4.2 Nov 8, 2022 Changes in this version + func DecodeForAdmin() gin.HandlerFunc + func LoginExpiredCheck() gin.HandlerFunc + func PathExists(path string) (bool, error) + func RefreshCache() gin.HandlerFunc + type ArticleController struct + func (ct *ArticleController) Add(c *gin.Context) + func (ct *ArticleController) All(c *gin.Context) + func (ct *ArticleController) Del(c *gin.Context) + func (ct *ArticleController) Do(c *gin.Context) + func (ct *ArticleController) Down(c *gin.Context) + func (ct *ArticleController) Modify(c *gin.Context) + type BaseController struct + Context *Context + type CategoryController struct + func (ct *CategoryController) Add(c *gin.Context) + func (ct *CategoryController) All(c *gin.Context) + func (ct *CategoryController) Del(c *gin.Context) + func (ct *CategoryController) Do(c *gin.Context) + func (ct *CategoryController) Update(c *gin.Context) + type Context struct + Cache *cache.Cache + Config *config.ConfigData + Ctrl *Controller + Model *database.Dao + View *view.ViewRender + func NewContext() *Context + type Controller struct + ArtC *ArticleController + CatC *CategoryController + ErrC *ErrerController + IndC *IndexController + LoginC *LoginController + OptC *OptionController + PagC *PageController + TweC *TweetController + type ErrerController struct + func (ct *ErrerController) Do404(c *gin.Context) + func (ct *ErrerController) Do500(c *gin.Context) + type IndexController struct + func (ct *IndexController) Do(c *gin.Context) + type LoginController struct + func (ct *LoginController) Check(c *gin.Context) + func (ct *LoginController) Login(c *gin.Context) + func (ct *LoginController) Ping(c *gin.Context) + type LoginInfo struct + func GetLoginInfo() *LoginInfo + func (l *LoginInfo) CheckExpired(exTime int64) bool + type OptionController struct + func (ct *OptionController) ClearCache(c *gin.Context) + func (ct *OptionController) Info(c *gin.Context) + type PageController struct + func (ct *PageController) Add(c *gin.Context) + func (ct *PageController) Del(c *gin.Context) + func (ct *PageController) Do(c *gin.Context) + func (ct *PageController) Down(c *gin.Context) + func (ct *PageController) List(c *gin.Context) + func (ct *PageController) Modify(c *gin.Context) + type TweetController struct + func (ct *TweetController) Add(c *gin.Context) + func (ct *TweetController) Del(c *gin.Context) + func (ct *TweetController) Do(c *gin.Context) + func (ct *TweetController) List(c *gin.Context)