arl

package module
v0.0.0-...-820b0e4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorAuthNotImplemented = errors.New("auth not implemented")
View Source
var ErrorInvalidFormat = errors.New("invalid ARL format")
View Source
var ErrorMethodNotImplemented = errors.New("method not implemented")
View Source
var ErrorResourceNotFound = errors.New("resource not found")

Functions

This section is empty.

Types

type AuthenticatedResourceLocator

type AuthenticatedResourceLocator struct {
	// contains filtered or unexported fields
}

func NewARL

func NewARL(arl string, maxSize uint64, maxConcurrent uint64) (AuthenticatedResourceLocator, error)

func NewARLWithClient

func NewARLWithClient(arl string, maxSize uint64, maxConcurrent uint64, client *http.Client) (AuthenticatedResourceLocator, error)

func (*AuthenticatedResourceLocator) Fetch

func (a *AuthenticatedResourceLocator) Fetch() (chan Content, error)

type Content

type Content struct {
	FilePath string
	Data     []byte
	Error    error
}

Jump to

Keyboard shortcuts

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