Documentation ¶
Index ¶
- func CheckAuth(c *gin.Context)
- func Count(c *gin.Context)
- func GetRoomInfo(c *gin.Context)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func Push(c *gin.Context)
- func PushRoom(c *gin.Context)
- func Register(c *gin.Context)
- type FormCheckAuth
- type FormCount
- type FormLogin
- type FormLogout
- type FormPush
- type FormRegister
- type FormRoom
- type FormRoomInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormCheckAuth ¶
type FormCheckAuth struct {
AuthToken string `form:"authToken" json:"authToken" binding:"required"`
}
FormCheckAuth ...
type FormCount ¶
type FormCount struct {
RoomID int `form:"roomId" json:"roomId" binding:"required"`
}
FormCount ...
type FormLogin ¶
type FormLogin struct { UserName string `form:"userName" json:"userName" binding:"required"` Password string `form:"passWord" json:"passWord" binding:"required"` }
FormLogin ...
type FormLogout ¶
type FormLogout struct {
AuthToken string `form:"authToken" json:"authToken" binding:"required"`
}
FormLogout ...
type FormPush ¶
type FormPush struct { Msg string `form:"msg" json:"msg" binding:"required"` ToUserID string `form:"toUserId" json:"toUserId" binding:"required"` RoomID int `form:"roomId" json:"roomId" binding:"required"` AuthToken string `form:"authToken" json:"authToken" binding:"required"` }
FormPush ...
type FormRegister ¶
type FormRegister struct { UserName string `form:"userName" json:"userName" binding:"required"` Password string `form:"passWord" json:"passWord" binding:"required"` }
FormRegister ...
type FormRoom ¶
type FormRoom struct { AuthToken string `form:"authToken" json:"authToken" binding:"required"` Msg string `form:"msg" json:"msg" binding:"required"` RoomID int `form:"roomId" json:"roomId" binding:"required"` }
FormRoom ...
type FormRoomInfo ¶
type FormRoomInfo struct {
RoomID int `form:"roomId" json:"roomId" binding:"required"`
}
FormRoomInfo ...
Click to show internal directories.
Click to hide internal directories.