Documentation ¶
Index ¶
- func Accepted(c *gin.Context)
- func BadRequest(c *gin.Context)
- func CreateGame(c *gin.Context)
- func CreateUpdateUserGame(c *gin.Context)
- func CreateUser(c *gin.Context)
- func DeleteGame(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func DeleteUserGame(c *gin.Context)
- func InternalServerError(c *gin.Context, err error, message string)
- func Ok(c *gin.Context)
- func OkWithData(c *gin.Context, data interface{})
- func ReadGame(c *gin.Context)
- func ReadUser(c *gin.Context)
- func UpdateGame(c *gin.Context)
- func UpdateUser(c *gin.Context)
- type Game
- type User
- type UserForm
- type UserGame
- type UserGameForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func CreateGame ¶
func CreateUpdateUserGame ¶
func CreateUser ¶
func DeleteGame ¶
func DeleteUser ¶
func DeleteUserGame ¶
func OkWithData ¶
func UpdateGame ¶
func UpdateUser ¶
Types ¶
type Game ¶
type Game struct { Id bson.ObjectId `bson:"_id,omitempty" json:"_id,omitempty"` Name string `form:"name" json:"name" binding:"required"` Route string `form:"route" json:"route" binding:"required"` Url string `form:"url" json:"url" binding:"required"` IsSystem bool `form:"is-system" json:"isSystem" bson:"isSystem,omitempty"` }
type UserGameForm ¶
Click to show internal directories.
Click to hide internal directories.