protocol

package
v0.0.0-...-6567141 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MsgId_Tick uint16 = iota + 1000
	MsgId_Error
	MsgId_Echo

	MsgId_ReqLogin
	MsgId_RetLogin

	MsgId_ReqAppLogin
	MsgId_RetAppLogin

	MsgId_ReqTokenLogin
	MsgId_RetTokenLogin

	MsgId_ReqToken
	MsgId_RetToken

	MsgId_ReqLoginOut
	MsgId_ReqRetLoginOut

	MsgId_ReqFriendList
	MsgId_RetFriendList

	MsgId_ReqFriendAdd
	MsgId_RetFriendAdd

	MsgId_FriendReqAgree
	MsgId_FriendReq
	MsgId_FriendReqResult

	MsgId_ReqFriendDel
	MsgId_RetFriendDel

	MsgId_ReqUserToBlack
	MsgId_RetUserToBlack

	MsgId_ReqRemoveUserInBlack
	MsgId_RetRemoveUserInBlack

	MsgId_ReqMoveFriendToGroup
	MsgId_RetMoveFriendToGroup

	MsgId_ReqSetFriendVerifyType
	MsgId_RetSetFriendVerifyType

	MsgId_Message
	MsgId_RetMessage

	MsgId_ReqUserInfo
	MsgId_RetUserInfo

	MsgId_ReqUserSearch
	MsgId_RetUserSearch

	MsgId_End
)
View Source
const (
	AppMsgId_ReqTokenVerify uint16 = iota + MsgId_End
	AppMsgId_RetTokenVerify

	AppMsgId_ReqToken
	AppMsgId_RetToken
)

app

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMsgReqToken

type AppMsgReqToken struct {
	NullCmd
	Uid uint64
}

type AppMsgReqTokenVerify

type AppMsgReqTokenVerify struct {
	NullCmd
	Token []byte
}

type AppMsgRetToken

type AppMsgRetToken struct {
	NullCmd
	Result uint16
	Token  []byte
}

type AppMsgRetTokenVerify

type AppMsgRetTokenVerify struct {
	NullCmd
	Result uint16
}

type MsgEcho

type MsgEcho struct {
	NullCmd
	Data []byte
}

type MsgError

type MsgError struct {
	NullCmd
	ErrorCode uint16
	ErrMsgId  uint16
}

func NewErrorMsg

func NewErrorMsg(errcode, errmsgid uint16) *MsgError

type MsgFriendReq

type MsgFriendReq struct {
	NullCmd
	Fuid uint64
}

type MsgFriendReqAgree

type MsgFriendReqAgree struct {
	NullCmd
	Fuid  uint64
	Group []byte
}

type MsgFriendReqResult

type MsgFriendReqResult struct {
	NullCmd
	Result uint16
	Fuid   uint64
}

type MsgMessage

type MsgMessage struct {
	NullCmd
	Fuid uint64
	Data []byte
}

type MsgReqAppLogin

type MsgReqAppLogin struct {
	NullCmd
	Appname  [32]byte
	Password [32]byte
}

type MsgReqFriendAdd

type MsgReqFriendAdd struct {
	NullCmd
	Fuid  uint64
	Group []byte
}

type MsgReqFriendAddSuccess

type MsgReqFriendAddSuccess struct {
	NullCmd
}

type MsgReqFriendDel

type MsgReqFriendDel struct {
	NullCmd
	Fuid uint64
}

type MsgReqFriendList

type MsgReqFriendList struct {
	NullCmd
}

type MsgReqLogin

type MsgReqLogin struct {
	NullCmd
	Uid      uint64
	Password [32]byte
}

type MsgReqLoginOut

type MsgReqLoginOut struct {
	NullCmd
}

type MsgReqMoveFriendToGroup

type MsgReqMoveFriendToGroup struct {
	NullCmd
	Fuid  uint64
	Group []byte
}

type MsgReqRemoveUserInBlack

type MsgReqRemoveUserInBlack struct {
	NullCmd
	Fuid uint64
}

type MsgReqSetFriendVerifyType

type MsgReqSetFriendVerifyType struct {
	NullCmd
	Type byte
}

type MsgReqToken

type MsgReqToken struct {
	NullCmd
	Uid      uint64
	Password [32]byte
}

type MsgReqTokenLogin

type MsgReqTokenLogin struct {
	NullCmd
	Token []byte
}

type MsgReqUserToBlack

type MsgReqUserToBlack struct {
	NullCmd
	Fuid uint64
}

type MsgRetAppLogin

type MsgRetAppLogin struct {
	NullCmd
	Result uint16
}

type MsgRetFriendAdd

type MsgRetFriendAdd struct {
	NullCmd
	Result uint16
	Fuid   uint64
	Group  []byte
}

type MsgRetFriendDel

type MsgRetFriendDel struct {
	NullCmd
	Result uint16
	Fuid   uint64
}

type MsgRetFriendList

type MsgRetFriendList struct {
	NullCmd
	Result     uint16
	GroupCount byte
	Data       []byte
}

type MsgRetLogin

type MsgRetLogin struct {
	NullCmd
	Result uint16
}

type MsgRetLoginOut

type MsgRetLoginOut struct {
	NullCmd
	Result byte
}

type MsgRetMessage

type MsgRetMessage struct {
	NullCmd
	Result uint16
	Fuid   uint64
}

type MsgRetMoveFriendToGroup

type MsgRetMoveFriendToGroup struct {
	NullCmd
	Result uint16
	Fuid   uint64
}

type MsgRetRemoveUserInBlack

type MsgRetRemoveUserInBlack struct {
	NullCmd
	Result uint16
	Fuid   uint64
}

type MsgRetSetFriendVerifyType

type MsgRetSetFriendVerifyType struct {
	NullCmd
	Result uint16
}

type MsgRetToken

type MsgRetToken struct {
	NullCmd
	Result uint16
	Uid    uint64
	Token  []byte
}

type MsgRetTokenLogin

type MsgRetTokenLogin struct {
	NullCmd
	Result uint16
	Count  byte
}

type MsgRetUserToBlack

type MsgRetUserToBlack struct {
	NullCmd
	Result uint16
	Fuid   uint64
}

type MsgTick

type MsgTick struct {
	NullCmd
}

type NullCmd

type NullCmd struct {
	MsgId uint16
}

Jump to

Keyboard shortcuts

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