Versions in this module Expand all Collapse all v0 v0.0.1 Apr 28, 2021 Changes in this version + const DATA_ITEM_HASH + const ENilReceiver + const FRAGMENT + const FRAGMENT_CONFIRMATION + var Config = ConfigStruct + var LogBufferSize int + var LogFile string + func RunReceiver(writeDataFn func(name string, data []byte) error, ...) + func Send(name string, data []byte) error + type ConfigStruct struct + AESKey []byte + Address string + PacketPayloadSize int + PacketSizeLimit int + Port int + ReplyTimeout time.Duration + SendRetries int + VerboseReceiver bool + VerboseSender bool + WriteTimeout time.Duration + func (ob *ConfigStruct) Validate() error + type DataItem struct + CompressedPieces [][]byte + CompressedSize int + Hash []byte + Name string + UncompressedSize int + func (ob *DataItem) IsLoaded() bool + func (ob *DataItem) PrintInfo(tag string) + func (ob *DataItem) Reset() + func (ob *DataItem) Retain(name string, hash []byte, packetCount int) + func (ob *DataItem) UnpackBytes() ([]byte, error) + type Packet struct + func NewPacket(data []byte) (*Packet, error) + func (ob *Packet) IsDelivered() bool + type Receiver struct