rsync

package
Version: v0.0.0-...-a725685 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 10

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL