allocator

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator struct {
	Files         []File
	NeedHashCheck bool
	Error         error
	// contains filtered or unexported fields
}

func New

func New() *Allocator

func (*Allocator) Close

func (a *Allocator) Close()

func (*Allocator) Run

func (a *Allocator) Run(info *metainfo.Info, sto storage.Storage, progressC chan Progress, resultC chan *Allocator)

type File added in v0.7.0

type File struct {
	Storage storage.File
	Name    string
}

type Progress

type Progress struct {
	AllocatedSize int64
}

Jump to

Keyboard shortcuts

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