Versions in this module Expand all Collapse all v0 v0.0.7 Sep 22, 2021 Changes in this version + func ParseIDsToStrings(pids []ID) []string + type DataPackage struct + Compress bool + Payload []byte + Protocol string + func (d *DataPackage) Marshal(buf []byte) ([]byte, error) + func (d *DataPackage) Size() (s uint64) + func (d *DataPackage) Unmarshal(buf []byte) (uint64, error) + type ID string + const TestingPID + func ParseStringsToIDs(strs []string) []ID + type Package struct + func NewPackage(id ID, payload []byte) *Package + func (m *Package) FromBytes(data []byte) error + func (m *Package) Payload() []byte + func (m *Package) ProtocolID() ID + func (m *Package) ToBytes(enableCompress bool) ([]byte, error)