Versions in this module Expand all Collapse all v1 v1.0.1 Jan 7, 2022 v1.0.0 Jan 4, 2022 Changes in this version + const ActionData + const ActionPing + const ActionPong + const DefaultHeadLength + const DefaultProtocolVersion + type CustomLengthFieldProtocol struct + ActionType uint16 + Data []byte + DataLength uint32 + Version uint16 + func (cc *CustomLengthFieldProtocol) Decode(c gnet.Conn) ([]byte, error) + func (cc *CustomLengthFieldProtocol) Encode(c gnet.Conn, buf []byte) ([]byte, error)