Versions in this module Expand all Collapse all v1 v1.0.0 Mar 8, 2022 Changes in this version + const HeadLen + var PingMessage = []byte + var PongMessage = []byte + type DefaultProtocol struct + func (p *DefaultProtocol) Decode(message []byte) (messageType byte, id int64, route []byte, body []byte) + func (p *DefaultProtocol) Encode(messageType byte, id int64, route []byte, body []byte) []byte + func (p *DefaultProtocol) Reader() func(n int, buf []byte, fn func(bytes []byte)) error + type Protocol interface + Decode func(message []byte) (messageType byte, id int64, route []byte, body []byte) + Encode func(messageType byte, id int64, route []byte, body []byte) []byte + Reader func() func(n int, buf []byte, fn func(bytes []byte)) error Other modules containing this package github.com/lemoyxk/kitty/v2