http

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type HTTPGatherer

type HTTPGatherer struct {
	HTTPMetadata
	Client http.Client
}

func NewHTTPGatherer

func NewHTTPGatherer() *HTTPGatherer

func (*HTTPGatherer) Gather

func (h *HTTPGatherer) Gather(ctx context.Context, rawSource, dst string) (metadata.Metadata, error)

func (*HTTPGatherer) Matcher

func (h *HTTPGatherer) Matcher(uri string) bool

type HTTPMetadata

type HTTPMetadata struct {
	URI          string
	Path         string
	ResponseCode int
	Size         int64
	Timestamp    string
}

func (*HTTPMetadata) Get

func (h *HTTPMetadata) Get() interface{}

func (HTTPMetadata) GetPinnedURL

func (h HTTPMetadata) GetPinnedURL(u string) (string, error)

Jump to

Keyboard shortcuts

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