Documentation ¶
Index ¶
- Constants
- Variables
- func All(c *gin.Context)
- func Article(c *gin.Context)
- func ArticleBad(c *gin.Context)
- func ArticleDelete(c *gin.Context)
- func Author(c *gin.Context)
- func Avatar(c *gin.Context)
- func Btm(c *gin.Context)
- func CheckAuth() gin.HandlerFunc
- func CommentDel(c *gin.Context)
- func CommentNew(c *gin.Context)
- func CommentUp(c *gin.Context)
- func Editor(c *gin.Context)
- func Fav(c *gin.Context)
- func Favorites(c *gin.Context)
- func Follow(c *gin.Context)
- func GetLead(s string) string
- func GoToRegister() gin.HandlerFunc
- func Home(c *gin.Context)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func Main(c *gin.Context)
- func NewVar(v interface{}) (*interface{}, error)
- func Policy(c *gin.Context)
- func Register(c *gin.Context)
- func SetVar(x *interface{}, v interface{}) (string, error)
- func Settings(c *gin.Context)
- func Terms(c *gin.Context)
- func ToDate(t time.Time) string
- func ToStr(value interface{}) string
- func Top(c *gin.Context)
- func Type2tele(c *gin.Context)
- func Unfav(c *gin.Context)
- func Unfollow(c *gin.Context)
- func Upload(c *gin.Context)
- func Vote(c *gin.Context)
Constants ¶
View Source
const (
CookieTime = 2592000
)
Variables ¶
View Source
var (
Config siteConfig
)
Functions ¶
func All ¶
All all page curl --header "Content-type:application/json" 'http://sub.localhost:8081/mid'
func Article ¶
Article page curl --header "Content-type:application/json" 'http://sub.localhost:8081/@recoilme/38'
func ArticleDelete ¶
ArticleDelete delete page by id of current user
func Avatar ¶ added in v1.3.2
Avatar how it work: if file present - it serve statically if not - you will see request here how tricky i am ;)
func CheckAuth ¶
func CheckAuth() gin.HandlerFunc
CheckAuth - general hook sets all param like lang, user
func CommentDel ¶
func NewVar ¶ added in v1.3.2
func NewVar(v interface{}) (*interface{}, error)
NewVar create new var: https://play.golang.org/p/C1MtTKvdmGT
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.