Versions in this module Expand all Collapse all v1 v1.1.1 Nov 16, 2018 v1.1.0 Oct 1, 2018 Changes in this version + const ChannelPriorityBelowNormal + const ChannelPriorityExtraHigh + const ChannelPriorityHigh + const ChannelPriorityNormal + const PayloadTypeBinary + const PayloadTypeString + type ChannelAck struct + func (c *ChannelAck) Marshal() ([]byte, error) + func (c *ChannelAck) Unmarshal(raw []byte) error + type ChannelOpen struct + ChannelType ChannelType + Label []byte + Priority uint16 + Protocol []byte + ReliabilityParameter uint32 + func (c *ChannelOpen) Marshal() ([]byte, error) + func (c *ChannelOpen) Unmarshal(raw []byte) error + type ChannelType byte + const ChannelTypePartialReliableRexmit + const ChannelTypePartialReliableRexmitUnordered + const ChannelTypePartialReliableTimed + const ChannelTypePartialReliableTimedUnordered + const ChannelTypeReliable + const ChannelTypeReliableUnordered + type Message interface + Marshal func() ([]byte, error) + Unmarshal func([]byte) error + func Parse(raw []byte) (Message, error) + type MessageType byte + const DataChannelAck + const DataChannelOpen + type Payload interface + PayloadType func() PayloadType + type PayloadBinary struct + Data []byte + func (p PayloadBinary) PayloadType() PayloadType + type PayloadString struct + Data []byte + func (p PayloadString) PayloadType() PayloadType + type PayloadType int + func (p PayloadType) String() string