rsync

package
v0.0.0-...-63c3a42 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeBlocks

func ServeBlocks(conn Conn, decoder Decoder, encoder Encoder,
	reader io.ReadSeeker, length uint64) error

Types

type Conn

type Conn interface {
	Flush() error
	io.Reader
	io.Writer
}

type Decoder

type Decoder interface {
	Decode(e interface{}) error
}

type Encoder

type Encoder interface {
	Encode(e interface{}) error
}

type Stats

type Stats struct {
	NumRead    uint64
	NumWritten uint64
}

func GetBlocks

func GetBlocks(conn Conn, decoder Decoder, encoder Encoder, reader io.Reader,
	writer io.WriteSeeker, totalBytes, readerBytes uint64) (Stats, error)

Jump to

Keyboard shortcuts

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