Versions in this module Expand all Collapse all v1 v1.0.0 Jun 9, 2021 Changes in this version + const KeyDecodeBuffer + const KeyDecoder + type EchoMessage struct + Content string + func NewEchoMessage(data string) *EchoMessage + func (m *EchoMessage) Id() uint64 + type EchoProtocol struct + func (p *EchoProtocol) Decode(session *knet.IoSession, reader io.Reader) (m knet.Message, err error) + func (p *EchoProtocol) Encode(session *knet.IoSession, m knet.Message) (data []byte, err error)