Versions in this module Expand all Collapse all v0 v0.12.2 Apr 10, 2019 v0.12.1 Apr 9, 2019 v0.12.0 Mar 26, 2019 v0.11.3 Apr 9, 2019 v0.11.2 Mar 21, 2019 v0.11.1 Mar 19, 2019 v0.11.0 Mar 19, 2019 v0.10.2 Mar 19, 2019 v0.10.1 Mar 18, 2019 v0.10.0 Mar 15, 2019 v0.9.4 Mar 12, 2019 v0.9.3 Mar 11, 2019 v0.9.2 Mar 8, 2019 v0.9.1 Mar 7, 2019 v0.9.0 Feb 28, 2019 v0.8.0 Feb 27, 2019 v0.7.7 Feb 20, 2019 v0.7.6 Jan 30, 2019 Changes in this version + var ErrInvalidMessage = errors.New("invalid message") + var ErrRouteInfoNotFound = errors.New("route info not found in dictionary") + var ErrWrongMessageType = errors.New("wrong message type") + func GetDictionary() map[string]uint16 + func SetDictionary(dict map[string]uint16) error + type Encoder interface + Encode func(message *Message) ([]byte, error) + IsCompressionEnabled func() bool + type Message struct + Data []byte + Err bool + ID uint + Route string + Type Type + func Decode(data []byte) (*Message, error) + func New(err ...bool) *Message + func (m *Message) String() string + type MessagesEncoder struct + DataCompression bool + func NewMessagesEncoder(dataCompression bool) *MessagesEncoder + func (me *MessagesEncoder) Decode(data []byte) (*Message, error) + func (me *MessagesEncoder) Encode(message *Message) ([]byte, error) + func (me *MessagesEncoder) IsCompressionEnabled() bool + type Type byte + const Notify + const Push + const Request + const Response + func (t *Type) String() string