assembler

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assembler

type Assembler struct {
	NumParts    int
	PartsDir    string
	PrefixParts string
	KeepParts   bool
	Timestamp   int64
	Log         logger.LoggerInterface
}

func NewAssembler

func NewAssembler(numParts int, partsDir string, keepParts bool, prefixParts string, timestamp int64, log logger.LoggerInterface) *Assembler

func (*Assembler) AssembleFileFromParts

func (a *Assembler) AssembleFileFromParts(manifest manifest.DownloadManifest, outFile *os.File, size int, rangeSize int, hasher hasher.Hasher) error

func (*Assembler) PrepareAssemblyEnviroment

func (a *Assembler) PrepareAssemblyEnviroment(outputFile string, manifestContent []byte) (manifest.DownloadManifest, *os.File, string, error)

func (*Assembler) SetLogger

func (a *Assembler) SetLogger(log logger.LoggerInterface)

Jump to

Keyboard shortcuts

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