handler

package
v0.0.0-...-4e35581 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(c *gin.Context)

CheckAuth ...

func Count

func Count(c *gin.Context)

Count ...

func GetRoomInfo

func GetRoomInfo(c *gin.Context)

GetRoomInfo ...

func Login

func Login(c *gin.Context)

Login ...

func Logout

func Logout(c *gin.Context)

Logout ...

func Push

func Push(c *gin.Context)

Push ...

func PushRoom

func PushRoom(c *gin.Context)

PushRoom ...

func Register

func Register(c *gin.Context)

Register ...

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 ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL