package
0.0.0-20241104101122-e614303aaaf1
Repository: https://github.com/nordsecurity/nordvpn-linux.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package libdrop wraps libdrop fileshare implementation.
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
ForAllFiles executes op for all files in files.
GetDefaultDownloadDirectory returns users Downloads directory or an error if it doesn't exist.
GetSelfPeer from meshnet client.
Gets all files with the given path prefix (returns all children of directory).
GetTransferFileStatus file status to human readable string.
GetTransferStatus translate transfer status into human readable form.
NewEventManager loads transfer state from storage, or creates empty state if loading fails.
NewNotificationManager creates a new notification.
NewPubkeyProvider must be used to create PubkeyProvider.
NewServer is a default constructor for a fileshare server.
NewStdFilesystem creates an StdFilesystem instance, basepath is the path prepended to all path arguments.
SetTransferAllFileStatus reset all files to status.

# Constants

No description provided by the author
The WebSocket server failed to bind because of an address collision.
A peer couldn’t validate our authentication request.
Failed to open the file or file doesn’t exist when asked to download.
Invalid input file ID passed when.
An invalid path was provided.
Invalid input transfer ID passed.
An error occurred during the transfer and it cannot continue.
Transfer resume attempt was closed by peer for no reason.
The persistence database is lost.
Transfer requested with empty file list.
Downloaded file checksum differs from the advertised one.
Action is blocked because the failed condition has been reached.
Action is blocked because the file is already transferred.
The file was modified while being uploaded.
The filename is too long which might be due to the fact the sender uses a filesystem supporting longer filenames than the one which’s downloading the file.
Download is impossible of the rejected file.
Not an error per se; indicates finalized transfers.
An invalid argument was provided either as a function argument or invalid config value.
General IO error.
The file size has changed since adding it to the transfer.
This error code is intercepted from the OS errors.
Persistence error.
Peer’s DDoS protection kicked in.
Transfer limits exceeded.
No description provided by the author

# Variables

Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
Handleable errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Action represents an action available to the user when notification is displayed.
DbusNotifier wraps github.com/esiqveland/notify notifier implementation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventManager is responsible for libdrop event handling.
LiveFile is part of LiveTransfer.
LiveTransfer to track ongoing transfers live in app based on events.
NotificationManager is responsible for creating gui pop-up notifications for changes in transfer file status.
PubkeyProvider for libdrop.
No description provided by the author
No description provided by the author
Server implements fileshare rpc receiver.
No description provided by the author
StdFilesystem is a wrapper for golang std filesystem implementation.
No description provided by the author
TransferProgressInfo info to report to the user.

# Interfaces

No description provided by the author
No description provided by the author
Fileshare defines a set of operations that any type that wants to act as a fileshare service must implement.
Filesystem defines file operations used by fileshare.
Notifier is responsible for sending notifications to the user.
No description provided by the author
Storage is used for filesharing history persistence.

# Type aliases

No description provided by the author