data

package
v0.0.0-...-df6d21c Latest Latest
Warning

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

Go to latest
Published: May 16, 2015 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data interface {
	// OpenSection(off, n int64) (io.ReadCloser, error)
	// ReadAt(p []byte, off int64) (n int, err error)
	// Close()
	WriteAt(p []byte, off int64) (n int, err error)
	WriteSectionTo(w io.Writer, off, n int64) (written int64, err error)
}

Represents data storage for a Torrent. Additional optional interfaces to implement are io.Closer, io.ReaderAt, StatefulData, and SectionOpener.

type Store

type Store interface {
	OpenTorrent(*metainfo.Info) Data
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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