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
func NewSendTransfer ¶
func NewSendTransfer(rw protoutils.ProtoMessageReadWriter) Transfer
Click to show internal directories.
Click to hide internal directories.