Versions in this module Expand all Collapse all v1 v1.14.5 Aug 23, 2024 Changes in this version + var ReceiveCmd = &cobra.Command + var SendCmd = &cobra.Command + func Debug(debug bool) + func GetFilesInfo(fnames []string, zipfolder bool) (filesInfo []FileInfo, emptyFolders []FileInfo, totalNumberFolders int, ...) + type Chunk struct + Bytes []byte + Location int64 + type Client struct + CurrentFile *os.File + CurrentFileChunkRanges []int64 + CurrentFileChunks []int64 + CurrentFileIsClosed bool + EmptyFoldersToTransfer []FileInfo + ExternalIP string + ExternalIPConnected string + FilesHasFinished map[int]struct{} + FilesToTransfer []FileInfo + FilesToTransferCurrentNum int + Key []byte + LastFolder string + Options Options + Pake *pake.Pake + Step1ChannelSecured bool + Step2FileInfoTransferred bool + Step3RecipientRequestFile bool + Step4FileTransferred bool + Step5CloseChannels bool + SuccessfulTransfer bool + TotalChunksTransferred int + TotalNumberFolders int + TotalNumberOfContents int + TotalSent int64 + func New(ops Options) (c *Client, err error) + func (c *Client) Receive() (err error) + func (c *Client) Send(filesInfo []FileInfo, emptyFoldersToTransfer []FileInfo, ...) (err error) + type FileInfo struct + FolderRemote string + FolderSource string + Hash []byte + IsCompressed bool + IsEncrypted bool + ModTime time.Time + Mode os.FileMode + Name string + Size int64 + Symlink string + TempFile bool + type Options struct + Ask bool + Curve string + Debug bool + DisableLocal bool + HashAlgorithm string + IP string + IgnoreStdin bool + IsSender bool + NoCompress bool + NoMultiplexing bool + NoPrompt bool + OnlyLocal bool + Overwrite bool + RelayAddress string + RelayAddress6 string + RelayPassword string + RelayPorts []string + SendingText bool + SharedSecret string + Stdout bool + ThrottleUpload string + ZipFolder bool + type Relay struct + Address string + Password string + Ports string + func GetRelays() ([]Relay, error) + type RemoteFileRequest struct + CurrentFileChunkRanges []int64 + FilesToTransferCurrentNum int + MachineID string + type Response struct + Relays []Relay + type SenderInfo struct + Ask bool + EmptyFoldersToTransfer []FileInfo + FilesToTransfer []FileInfo + HashAlgorithm string + MachineID string + NoCompress bool + SendingText bool + TotalNumberFolders int + type TransferOptions struct + KeepPathInRemote bool + PathToFiles []string