Documentation ¶
Index ¶
- func ReadMsg(c io.Reader) (msg models.Message, err error)
- func ReadMsgInto(c io.Reader, msg models.Message) (err error)
- func ReadMsgWithTimeOut(c io.Reader, t time.Duration) (msg models.Message, err error)
- func UnPack(typeStr string, buffer []byte) (msg models.Message, err error)
- func UnPackInto(buffer []byte, msg models.Message) (err error)
- func WriteMsg(c io.Writer, msg interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadMsgWithTimeOut ¶
读取Msg超时错误返回
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.