Documentation ¶
Index ¶
- Variables
- func ChgPwd(ctx *gin.Context)
- func CreateGroup(ctx *gin.Context)
- func Email(ctx *gin.Context)
- func FindUserById(ctx *gin.Context)
- func GetMembersByGroupId(ctx *gin.Context)
- func GetMyGroups(ctx *gin.Context)
- func HandleGroupMessage(meg *model.GroupMessageInput) error
- func HandleJoinGroup(meg *model.UserJoinGroupInput) error
- func HandlePackage(bytes []byte, conn *service.Conn)
- func Login(ctx *gin.Context)
- func Message(data model.GroupMessageInput, userId int64) error
- func Register(ctx *gin.Context)
- func Sync(ctx *gin.Context)
- func UserJoinGroup(data model.UserJoinGroupInput, userId int64) error
- type CreateGroupParams
- type Input
- type LoginInfo
- type Package
- type PackageType
- type SyncParam
- type WsConnContext
Constants ¶
This section is empty.
Variables ¶
View Source
var Engine *gin.Engine
Functions ¶
func CreateGroup ¶
func FindUserById ¶
func GetMembersByGroupId ¶
func GetMyGroups ¶
func HandleGroupMessage ¶
func HandleGroupMessage(meg *model.GroupMessageInput) error
func HandleJoinGroup ¶
func HandleJoinGroup(meg *model.UserJoinGroupInput) error
func UserJoinGroup ¶
func UserJoinGroup(data model.UserJoinGroupInput, userId int64) error
Types ¶
type CreateGroupParams ¶
type Input ¶
type Input struct { model.GroupMessageInput model.GroupMessageSyncInput model.UserJoinGroupInput }
type Package ¶
type Package struct { Type PackageType `json:"type"` Data Input `json:"data"` }
type PackageType ¶
type PackageType int
const ( PackageType_PT_ERR PackageType = 0 PackageType_PT_UNKNOWN PackageType = 0 PackageType_PT_SIGN_IN PackageType = 1 PackageType_PT_SYNC PackageType = 2 PackageType_PT_HEARTBEAT PackageType = 3 PackageType_PT_MESSAGE PackageType = 4 PackageType_PT_JOINGROUP PackageType = 5 )
Click to show internal directories.
Click to hide internal directories.