package
Version:
v0.0.0-...-cd5db6d
Opens a new window with list of versions in this module.
Published: Apr 23, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ChatMsg struct {
RId int `json:"rid"`
NickName string `json:"nickName"`
Type int8 `json:"type"`
Msg string `json:"msg"`
Time int64 `json:"time"`
}
type ChatReq struct {
Type int8 `json:"type"`
Msg string `json:"msg"`
}
type ExitReq struct {
Type int8 `json:"type"`
Id int `json:"id"`
}
type ExitRsp struct {
Type int8 `json:"type"`
Id int `json:"id"`
}
type HistoryReq struct {
Type int8 `json:"type"`
}
type HistoryRsp struct {
Type int8 `json:"type"`
Msgs []ChatMsg `json:"msgs"`
}
type JoinReq struct {
Type int8 `json:"type"`
Id int `json:"id"`
}
type JoinRsp struct {
Type int8 `json:"type"`
Id int `json:"id"`
}
type LoginReq struct {
RId int `json:"rid"`
NickName string `json:"nickName"`
Token string `json:"token"`
}
type LoginRsp struct {
RId int `json:"rid"`
NickName string `json:"nickName"`
}
type LogoutReq struct {
RId int `json:"RId"`
}
type LogoutRsp struct {
RId int `json:"RId"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.