util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsURL

func IsURL(check string) bool

func MapFileListAsync

func MapFileListAsync(manifest []manifests.FileManifest, mapFileManifestChan chan map[string]manifests.FileManifest)

func MapFileListSync

func MapFileListSync(manifest []manifests.FileManifest) map[string]manifests.FileManifest

func SplitSpan

func SplitSpan(span patcher.MissingBlockSpan, newArrSpan []patcher.MissingBlockSpan, maxAllowedSpan uint) []patcher.MissingBlockSpan

Types

type Block

type Block struct {
	RemoteSource      bool
	StartBlock        uint
	EndBlock          uint
	MatchOffset       int64
	Offset            int64
	BlockSize         int64
	TotalBlockToFetch int64
}

func FormBlocksOrder

func FormBlocksOrder(blockSpan manifests.PatchingBlockSpan) []Block

Directories

Path Synopsis
util/readers exists to provide convenient and composable io.Reader compatible streams to allow testing without having to check in large binary files.
util/readers exists to provide convenient and composable io.Reader compatible streams to allow testing without having to check in large binary files.

Jump to

Keyboard shortcuts

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