fetcher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

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

Fetcher wraps an HTTP client.

func NewFetcher

func NewFetcher(client *http.Client, username, password, token string) *Fetcher

NewFetcher constructs a new client wrapper with a given client.

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(url string) ([]byte, error)

Fetch constructs a request and does a client.Do with it.

Jump to

Keyboard shortcuts

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