storage

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package storage contains an interface for reading and writing files in a torrent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	io.ReaderAt
	io.WriterAt
	io.Closer
}

File interface for reading/writing torrent data.

type Storage

type Storage interface {
	Open(name string, size int64) (f File, exists bool, err error)
}

Storage is an interface for reading/writing torrent files.

Directories

Path Synopsis
Package filestorage implements Storage interface that uses files on disk as storage.
Package filestorage implements Storage interface that uses files on disk as storage.

Jump to

Keyboard shortcuts

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