Documentation ¶
Overview ¶
A binary protocol for rsync.
Index ¶
Constants ¶
View Source
const ( // Unique key written in every header to identify and confirm the stream. RsyncMagic uint32 = 0x72730136 )
Variables ¶
View Source
var ( ErrBadMagic = errors.New("Corrupt or incorrect data: bad magic value in stream.") ErrUnknownCompression = errors.New("Unknown compression.") ErrInvalidCall = errors.New("Cannot call function while reading from set type.") ErrHeaderOnce = errors.New("Must call Header only once.") ErrBadVarintRead = errors.New("Bad varint read.") )
Functions ¶
This section is empty.
Types ¶
type ErrDataTooLong ¶
type ErrDataTooLong int
func (ErrDataTooLong) Error ¶
func (err ErrDataTooLong) Error() string
type ErrHashTooLong ¶
type ErrHashTooLong int
func (ErrHashTooLong) Error ¶
func (err ErrHashTooLong) Error() string
type ErrIncorrectType ¶
type ErrIncorrectType struct {
Expecting, Actual Type
}
func (ErrIncorrectType) Error ¶
func (err ErrIncorrectType) Error() string
type Writer ¶
Write the protocol to a stream by setting the Writer and calling its methods subsequently.
func (*Writer) OperationWriter ¶
func (w *Writer) OperationWriter() rsync.OperationWriter
Return an operation writer. The call itself does not write anything. Use with a Delta header.
func (*Writer) SignatureWriter ¶
func (w *Writer) SignatureWriter() rsync.SignatureWriter
Return a signature writer. The call itself does not write anything. Use with a Signature header.
Click to show internal directories.
Click to hide internal directories.