multipart

package
v0.0.0-...-6d21404 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOverlap = errors.New("ranges overlap")

Functions

func BlocksInFull

func BlocksInFull(blocks []uuid.UUID, sizes []int64) (offsets [][]int64, lengths [][]int64)

func BlocksOfRange

func BlocksOfRange(blocks []uuid.UUID, sizes []int64, r Range) (offsets [][]int64, lengths [][]int64)

func Digits

func Digits(int64s ...int64) (n int64)

func WriteFooter

func WriteFooter(w io.Writer, boundary string) (err error)

func WriteHeader

func WriteHeader(w io.Writer, offset, length, size int64, boundary, mime string) (err error)

Types

type Range

type Range = http_range.Range

func ParseRange

func ParseRange(bytes string, size int64) (ranges []Range, err error)

Jump to

Keyboard shortcuts

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