fetcher

package
v0.0.0-...-8a78af9 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFetcher

func RegisterFetcher(name string, fn NewFetcherFunc) (err error)

Types

type FetchParams

type FetchParams []byte

func (*FetchParams) Unmarshal

func (p *FetchParams) Unmarshal(v interface{}) (err error)

type Fetcher

type Fetcher interface {
	Fetch(FetchParams) ([]byte, error)
}

func New

func New(name string, conf config.Configuration) (f Fetcher, err error)

type NewFetcherFunc

type NewFetcherFunc func(config.Configuration) (Fetcher, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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