tus

package
v1.126.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const KeyTUSMetadata = "filename"

Variables

This section is empty.

Functions

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