Documentation
¶
Index ¶
- Constants
- type FriendAddInfo
- type FriendAddResp
- type FriendDesc
- type FriendDetails
- type FriendList
- type FriendReq
- type FriendSummary
- type GMember
- type GMsgFetch
- type GMsgFetchContent
- type GMsgFetchReq
- type GMsgFetchResp
- type GroupCreateInfo
- type GroupDesc
- type GroupDetails
- type GroupKeyFetchReq
- type GroupKeyFetchResp
- type GroupKeyIndex
- type GroupKeyStoreReq
- type GroupKeyStoreResp
- type GroupKeys
- type GroupMbrAddInfo
- type GroupMbrDetailsList
- type GroupMemberDesc
- type GroupMemberReq
- type GroupMemberResp
- type GroupModTime
- type GroupMsg
- type GroupMsgStoreReq
- type GroupMsgStoreResp
- type GroupReq
- type GroupResp
- type GroupSummary
- type GroupSummaryResult
- type LGroupMsg
- type LP2pMsg
- type ListFriendReq
- type ListFriendResp
- type ListFriendSummaryReq
- type ListFriendSummaryResp
- type ListGroupMbrsReq
- type ListGroupSummaryReq
- type ListGroupSummaryResp
- type ListGrpMbr
- type ListGrpMbrsResp
- type P2pMsg
- type P2pMsgFetch
- type P2pMsgFetchReq
- type P2pMsgFetchResp
- type P2pMsgStoreReq
- type P2pMsgStoreResp
- type SignPack
- type UCReply
- type UserCommand
- type UserRegReq
- type UserRegResp
- type UserSignText
Constants ¶
View Source
const ( AddFriend int = iota DelFriend ListFriendSummary ListGroupSummary ListFriend AddGroup DelGroup ChgGroup ListGroupMbr StoreGrpKeys FetchGrpKeys StoreP2pMsg FetchP2pMsg StoreGMsg FetchGMsg JoinGroup QuitGroup )
View Source
const ( UserExpired int = iota + 1 PeerExpired PeerNotExisted UserNotFound InternalError )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FriendAddInfo ¶
type FriendAddInfo struct {
Addr address.ChatAddress `json:"addr"`
AliasName string `json:"alias_name"`
AddTime int64 `json:"add_time"`
Agree int `json:"agree"`
}
type FriendAddResp ¶
type FriendAddResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
FAI FriendAddInfo `json:"fd"`
}
type FriendDesc ¶
type FriendDetails ¶
type FriendList ¶
type FriendList struct {
UpdateTime int64 `json:"update_time"`
FD []FriendDetails `json:"fd"`
GD []GroupDetails `json:"gd"`
}
type FriendReq ¶
type FriendReq struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
FD FriendDesc `json:"fd"`
}
type FriendSummary ¶
type FriendSummary struct {
FriendUpdateTime int64 `json:"fut"`
}
type GMsgFetchContent ¶
type GMsgFetchReq ¶
type GMsgFetchResp ¶
type GMsgFetchResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
GMsg GMsgFetchContent `json:"gmsg"`
}
type GroupCreateInfo ¶
type GroupDetails ¶
type GroupKeyFetchReq ¶
type GroupKeyFetchReq struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
GKI GroupKeyIndex `json:"gki"`
}
type GroupKeyFetchResp ¶
type GroupKeyIndex ¶
type GroupKeyIndex struct {
IndexKey string `json:"index_key"`
}
type GroupKeyStoreReq ¶
type GroupKeyStoreResp ¶
type GroupKeyStoreResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
GKI GroupKeyIndex `json:"gki"`
}
type GroupMbrAddInfo ¶
type GroupMbrDetailsList ¶
type GroupMemberDesc ¶
type GroupMemberReq ¶
type GroupMemberReq struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
GMD GroupMemberDesc `json:"gmd"`
}
type GroupMemberResp ¶
type GroupMemberResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
GMAI GroupMbrAddInfo `json:"gmd"`
}
type GroupModTime ¶
type GroupMsgStoreReq ¶
type GroupMsgStoreResp ¶
type GroupResp ¶
type GroupResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
GCI GroupCreateInfo `json:"gd"`
}
type GroupSummary ¶
type GroupSummaryResult ¶
type GroupSummaryResult struct {
GMT []GroupModTime `json:"gmt"`
}
type ListFriendReq ¶
type ListFriendResp ¶
type ListFriendResp struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
FL FriendList `json:"fl"`
}
type ListFriendSummaryReq ¶
type ListFriendSummaryResp ¶
type ListFriendSummaryResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
FS FriendSummary `json:"fs"`
}
type ListGroupMbrsReq ¶
type ListGroupMbrsReq struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
LG ListGrpMbr `json:"lg"`
}
type ListGroupSummaryReq ¶
type ListGroupSummaryReq struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
GS GroupSummary `json:"gs"`
}
type ListGroupSummaryResp ¶
type ListGroupSummaryResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
GSR GroupSummaryResult `json:"gsr"`
}
type ListGrpMbr ¶
type ListGrpMbr struct {
GroupId string `json:"group_id"`
}
type ListGrpMbrsResp ¶
type ListGrpMbrsResp struct {
Op int `json:"op"`
ResultCode int `json:"result_code"`
GML GroupMbrDetailsList `json:"gml"`
}
type P2pMsgFetch ¶
type P2pMsgFetchReq ¶
type P2pMsgFetchReq struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
Msg P2pMsgFetch `json:"msg"`
}
type P2pMsgFetchResp ¶
type P2pMsgStoreReq ¶
type P2pMsgStoreResp ¶
type SignPack ¶
type SignPack struct {
Sign string `json:"sign"`
SignText UserSignText `json:"sign_text"`
}
type UserCommand ¶
type UserCommand struct {
Op int `json:"op"`
SP SignPack `json:"sp"`
CipherTxt string `json:"cipher_txt"`
}
func NewUserCommand ¶
func NewUserCommand(op int) *UserCommand
type UserRegReq ¶
type UserRegResp ¶
Click to show internal directories.
Click to hide internal directories.