filesync

package
v0.0.0-...-29af9ac Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileSyncer

func NewFileSyncer() *fileSyncer

Types

type FileSyncer

type FileSyncer interface {
	SendFiles(ctx context.Context, rw protoutils.ProtoMessageReadWriter, path string, opts *pb.SyncOpts) (*pb.SyncResp, error)
	ReceiveFiles(ctx context.Context, rw protoutils.ProtoMessageReadWriter, path string, opts *pb.SyncOpts) (*pb.SyncResp, error)
}

type Transfer

type Transfer interface {
	Transfer(ctx context.Context, file *pb.FileBase, opts *pb.SyncOpts) (err error)
	TransferSize() int64
}

func NewReceiverTransfer

func NewReceiverTransfer(rw protoutils.ProtoMessageReadWriter, dest string) Transfer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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