Documentation ¶
Index ¶
Constants ¶
View Source
const FileType = "nimona.io/File"
View Source
const TransferDoneType = "nimona.io/TransferDone"
View Source
const TransferRequestType = "nimona.io/TransferRequest"
View Source
const TransferResponseType = "nimona.io/TransferResponse"
Variables ¶
View Source
var ErrTransferRejected = errors.New("transfer rejected")
Functions ¶
This section is empty.
Types ¶
type Filesharer ¶
type Filesharer interface { context.Context, ) ( chan *Transfer, error, ) ctx context.Context, file *File, peerKey crypto.PublicKey, ) (string, error) ctx context.Context, transfer Transfer, accepted bool, ) error ctx context.Context, transfer *Transfer, ) ( *os.File, error, ) }ctx
func New ¶
func New( objectManager objectmanager.ObjectManager, net network.Network, receivedFolder string, ) Filesharer
type Transfer ¶
type Transfer struct { Request TransferRequest Peer crypto.PublicKey }
type TransferDone ¶
type TransferRequest ¶
Click to show internal directories.
Click to hide internal directories.