Versions in this module Expand all Collapse all v0 v0.5.0 Apr 6, 2023 Changes in this version + const Notify + const Push + const Request + const Response + var ErrInvalidMessage = errors.New("invalid message") + var ErrRouteInfoNotFound = errors.New("route info not found in dictionary") + var ErrWrongMessage = errors.New("wrong message") + var ErrWrongMessageType = errors.New("wrong message type") + func Encode(m *Message) ([]byte, error) + func GetDictionary() (map[string]uint16, bool) + func Serialize(v interface{}) ([]byte, error) + func SetDictionary(dict map[string]uint16) + type Message struct + Data []byte + ID uint64 + Route string + Type Type + func Decode(data []byte) (*Message, error) + func New() *Message + func (m *Message) Encode() ([]byte, error) + func (m *Message) String() string + type Type byte + func (t Type) String() string