datatransfer

package
v1.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransferLocal = &transferLocalImpl{}

Functions

This section is empty.

Types

type ExecuteParams

type ExecuteParams struct {
	TransferType   string
	TransferParams []byte
	DealUuid       uuid.UUID
	FilePath       string
	Size           uint64
}

type MockTransport

type MockTransport struct {
	// contains filtered or unexported fields
}

func NewMockTransport

func NewMockTransport() *MockTransport

func (*MockTransport) Execute

func (t *MockTransport) Execute(ctx context.Context, params ExecuteParams) (chan uint64, error)

func (*MockTransport) SimulateTransfer

func (t *MockTransport) SimulateTransfer(ctx context.Context, dealUuid uuid.UUID, size uint64) (chan uint64, error)

func (*MockTransport) Transferred

func (t *MockTransport) Transferred(dealUuid uuid.UUID) uint64

type OnTransferredFn

type OnTransferredFn func(transferred uint64)

type TransferLocalParams

type TransferLocalParams struct {
	Path string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL