Documentation
¶
Index ¶
- Constants
- func CreateHTML(c *gin.Context)
- func CreatePost(c *gin.Context)
- func Feed(c *gin.Context)
- func GetPost(c *gin.Context)
- func GetPosts(c *gin.Context)
- func Login(c *gin.Context)
- func LoginHTML(c *gin.Context)
- func Logout(c *gin.Context)
- func PostComment(c *gin.Context)
- func Register(c *gin.Context)
- func RegisterHTML(c *gin.Context)
- func Uploads(c *gin.Context)
- type Channel
- type Item
- type LoginUserInput
- type PostInput
- type RSS
- type RegisterUserInput
Constants ¶
View Source
const RFC822_4Y = "02 Jan 2006 15:04 MST" // https://validator.w3.org/feed/docs/warning/ProblematicalRFC822Date.html
Variables ¶
This section is empty.
Functions ¶
func CreatePost ¶
func RegisterHTML ¶
<=============== GET /register ===============>
Types ¶
type LoginUserInput ¶
type LoginUserInput struct {
UserName string `form:"username" binding:"required"`
Password string `form:"password" binding:"required"`
}
<=============== POST /login ===============>
type PostInput ¶
type PostInput struct {
Title string `form:"title" binding:"required"`
Content string `form:"content"`
VideoLink string `form:"video_link"`
}
<=============== POST /create ===============>
type RegisterUserInput ¶
type RegisterUserInput struct {
UserName string `form:"username" binding:"required"`
Password string `form:"password" binding:"required"`
GlobalPassword string `form:"global_password" binding:"required"`
}
<=============== POST /register ===============>
Click to show internal directories.
Click to hide internal directories.