url

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchToTemp

func FetchToTemp(url string) (string, error)

func Scheme

func Scheme(url string) string

Types

type FakeFetcher

type FakeFetcher struct{}

func (*FakeFetcher) Fetch

func (f *FakeFetcher) Fetch(url string) (io.ReadCloser, error)

type Fetcher

type Fetcher interface {
	Fetch(url string) (io.ReadCloser, error)
}

type HTTPClient

type HTTPClient interface {
	Get(url string) (*http.Response, error)
}

type HTTPFetcher

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

func (*HTTPFetcher) Fetch

func (h *HTTPFetcher) Fetch(url string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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