types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BearerToken

type BearerToken struct {
	Token string
}

func (*BearerToken) FromRequestHeader

func (b *BearerToken) FromRequestHeader(r *http.Request) error

type FileData

type FileData struct {
	PartialDataInfo *PartialDataInfo
	ContentType     string
	ContentSize     int64
	Content         []byte
}

func (FileData) Write

func (file FileData) Write(w http.ResponseWriter) error

type PartialDataInfo

type PartialDataInfo struct {
	RangeStartByte int64
	TotalDataSize  int64
}

type RangeOption

type RangeOption struct {
	Start int64
	End   int64
}

func (*RangeOption) FromHeader

func (o *RangeOption) FromHeader(header string) error

func (*RangeOption) Length

func (o *RangeOption) Length(objSize int64) (int64, error)

Jump to

Keyboard shortcuts

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