chunksmapper

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunksMapper

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

func NewFileChunksMapper

func NewFileChunksMapper(fileSize int64) *ChunksMapper

func (*ChunksMapper) Add

func (mapper *ChunksMapper) Add(chunk chunks.ChunkInfo)

func (*ChunksMapper) FillChunksMap

func (mapper *ChunksMapper) FillChunksMap(chunkChannel <-chan chunks.ChunkInfo)

func (*ChunksMapper) GetMappedChunks

func (mapper *ChunksMapper) GetMappedChunks() []chunks.ChunkInfo

func (*ChunksMapper) GetMissingChunks

func (mapper *ChunksMapper) GetMissingChunks() []chunks.ChunkInfo

Jump to

Keyboard shortcuts

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