Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrTypeInvalid = "E_INVALID"
)
Variables ¶
This section is empty.
Functions ¶
func SendFrameData ¶
发送包含frameType的data
Types ¶
type FatalClientErr ¶
func NewFatalClientErr ¶
func NewFatalClientErr(err error, code, desc string) *FatalClientErr
func (*FatalClientErr) Error ¶
func (f *FatalClientErr) Error() string
type Message ¶
func DecodeMessage ¶
解析字节流为Message结构体 数据格式:timestamp(8byte) + attempts(2byte) + messageID(16byte) + body
type TCPHandler ¶
Click to show internal directories.
Click to hide internal directories.