tus

package
v1.129.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const KeyTUSMetadata = "filename"

Variables

This section is empty.

Functions

func GenerateTUSChecksumHeader added in v1.129.0

func GenerateTUSChecksumHeader(hashAlgo, hash string) (header string, err error)

GenerateTUSChecksumHeader generate the checksum header value See https://tus.io/protocols/resumable-upload#upload-checksum

func GenerateTUSConcatFinalHeader added in v1.129.0

func GenerateTUSConcatFinalHeader(partials []*url.URL) (header string, err error)

GenerateTUSConcatFinalHeader generates the `Concat` header value https://tus.io/protocols/resumable-upload#upload-concat

func GenerateTUSMetadataHeader added in v1.129.0

func GenerateTUSMetadataHeader(filename *string, elements map[string]any) (header string, err error)

GenerateTUSMetadataHeader generates the `metadata` header value https://tus.io/protocols/resumable-upload#upload-metadata

func ParseTUSConcatHeader

func ParseTUSConcatHeader(concat string) (isPartial bool, partials []*url.URL, err error)

ParseTUSConcatHeader parses the `Concat` header value https://tus.io/protocols/resumable-upload#upload-concat

func ParseTUSHash

func ParseTUSHash(checksum string) (hashAlgo, hash string, err error)

ParseTUSHash parses the checksum header value and tries to determine the different elements it contains. See https://tus.io/protocols/resumable-upload#upload-checksum

func ParseTUSMetadataHeader

func ParseTUSMetadataHeader(header string) (filename *string, elements map[string]any, err error)

ParseTUSMetadataHeader parses the `metadata` header value https://tus.io/protocols/resumable-upload#upload-metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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