Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSuportType = errors.New("type is not suported")
View Source
var ErrPendingTooLong = errors.New("call is pending too long")
View Source
var ErrSendError = errors.New("got error when send to network")
View Source
var ErrShutdown = errors.New("connection is shut down")
Functions ¶
Types ¶
type IMsg ¶
type IMsg interface { RecvMsg(connID int, logT *log.TraceInfoST) MsgNO() uint16 //返回对应的消息编号,每种消息一个编号,保证唯一性 }
IMsg 是路由层(消息分发层)和逻辑层(消息处理层)之间传递的数据结构,Msg:message的缩写
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
Peer 一条连接一个Peer,连接的相关的信息可以存这里
type ServerError ¶
type ServerError string
func (ServerError) Error ¶
func (e ServerError) Error() string
Click to show internal directories.
Click to hide internal directories.