receiver

package
v0.0.0-...-691d4ba Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2015 License: Apache-2.0, MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const CHUNK_SIZE = 8 * 4096

Variables

This section is empty.

Functions

func RunSynchronizerService

func RunSynchronizerService(link io.ReadWriteCloser) error

Types

type Chunk

type Chunk struct {
	Signature
	Data [CHUNK_SIZE]byte
}

type File

type File struct {
	// contains filtered or unexported fields
}

func NewFile

func NewFile(pathName string) (*File, error)

func (*File) NextSignature

func (this *File) NextSignature(dummy int, signature *Signature) (err error)

func (*File) SaveChunk

func (this *File) SaveChunk(chunk Chunk, dummy *int) error

func (*File) StartStream

func (this *File) StartStream(index int, token *string) (err error)

type Signature

type Signature struct {
	Rolling string
	Strong  string
}

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func NewStream

func NewStream(filePath string) (*Stream, error)

func (*Stream) Close

func (this *Stream) Close(dummy int, nothing *int) error

func (*Stream) Write

func (this *Stream) Write(data []byte, n *int) (err error)

type Synchronizer

type Synchronizer int

func (*Synchronizer) StartFile

func (this *Synchronizer) StartFile(filePath string, token *string) error

Jump to

Keyboard shortcuts

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