data

package
v0.0.0-...-bc19bdb Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: MPL-2.0, MIT 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