Versions in this module Expand all Collapse all v5 v5.0.1 Nov 10, 2022 v5.0.0 Nov 10, 2022 Changes in this version + const FileMaxSize + const FileNameMaxLen + const FileTypeMaxLen + const PreviewMaxSize + var File_ftMessages_proto protoreflect.FileDescriptor + type Cmix interface + AddFingerprint func(identity *id.ID, fingerprint format.Fingerprint, mp message.Processor) error + AddHealthCallback func(f func(bool)) uint64 + CheckInProgressMessages func() + DeleteFingerprint func(identity *id.ID, fingerprint format.Fingerprint) + GetMaxMessageLength func() int + GetRoundResults func(timeout time.Duration, roundCallback cmix.RoundEventCallback, ...) + IsHealthy func() bool + RemoveHealthCallback func(uint64) + SendMany func(messages []cmix.TargetedCmixMessage, p cmix.CMIXParams) (rounds.Round, []ephemeral.Id, error) + type DelayedTimer struct + C *<-chan time.Time + func NewDelayedTimer(d time.Duration) *DelayedTimer + func (dt *DelayedTimer) Start() + func (dt *DelayedTimer) Stop() bool + type FilePartTracker interface + GetNumParts func() uint16 + GetPartStatus func(partNum uint16) FpStatus + type FileTransfer interface + CloseSend func(tid *ftCrypto.TransferID) error + HandleIncomingTransfer func(transferInfo []byte, progressCB ReceivedProgressCallback, period time.Duration) (*ftCrypto.TransferID, *TransferInfo, error) + MaxFileNameLen func() int + MaxFileSize func() int + MaxFileTypeLen func() int + MaxPreviewSize func() int + Receive func(tid *ftCrypto.TransferID) ([]byte, error) + RegisterReceivedProgressCallback func(tid *ftCrypto.TransferID, progressCB ReceivedProgressCallback, ...) error + RegisterSentProgressCallback func(tid *ftCrypto.TransferID, progressCB SentProgressCallback, ...) error + Send func(recipient *id.ID, fileName, fileType string, fileData []byte, retry float32, ...) (*ftCrypto.TransferID, error) + StartProcesses func() (stoppable.Stoppable, error) + func NewManager(params Params, user FtE2e) (FileTransfer, error) + type FpStatus int + const FpArrived + const FpReceived + const FpSent + const FpUnsent + func (fps FpStatus) String() string + type FtE2e interface + GetCmix func() cmix.Client + GetE2E func() e2e.Handler + GetReceptionIdentity func() xxdk.ReceptionIdentity + GetRng func() *fastRNG.StreamGenerator + GetStorage func() storage.Session + type NewFileTransfer struct + FileName string + FileType string + NumParts uint32 + Preview []byte + Retry float32 + Size uint32 + TransferKey []byte + TransferMac []byte + func (*NewFileTransfer) Descriptor() ([]byte, []int) + func (*NewFileTransfer) ProtoMessage() + func (x *NewFileTransfer) GetFileName() string + func (x *NewFileTransfer) GetFileType() string + func (x *NewFileTransfer) GetNumParts() uint32 + func (x *NewFileTransfer) GetPreview() []byte + func (x *NewFileTransfer) GetRetry() float32 + func (x *NewFileTransfer) GetSize() uint32 + func (x *NewFileTransfer) GetTransferKey() []byte + func (x *NewFileTransfer) GetTransferMac() []byte + func (x *NewFileTransfer) ProtoReflect() protoreflect.Message + func (x *NewFileTransfer) Reset() + func (x *NewFileTransfer) String() string + type Params struct + Cmix cmix.CMIXParams + MaxThroughput int + SendTimeout time.Duration + func DefaultParams() Params + func GetParameters(params string) (Params, error) + type ReceiveCallback func(tid *ftCrypto.TransferID, fileName, fileType string, sender *id.ID, ...) + type ReceivedProgressCallback func(completed bool, received, total uint16, rt ReceivedTransfer, t FilePartTracker, ...) + type ReceivedTransfer interface + type SendNew func(transferInfo []byte) error + type SentProgressCallback func(completed bool, arrived, total uint16, st SentTransfer, t FilePartTracker, ...) + type SentTransfer interface + Recipient func() *id.ID + type Storage interface + GetCmixGroup func() *cyclic.Group + GetKV func() *versioned.KV + type Transfer interface + FileName func() string + FileSize func() uint32 + NumParts func() uint16 + TransferID func() *ftCrypto.TransferID + type TransferInfo struct + FileName string + FileType string + Key ftCrypto.TransferKey + Mac []byte + NumParts uint16 + Preview []byte + Retry float32 + Size uint32 + func UnmarshalTransferInfo(data []byte) (*TransferInfo, error) + func (ti *TransferInfo) Marshal() ([]byte, error) Other modules containing this package gitlab.com/elixxir/client/v4