fetcher

package
v0.0.0-...-3135b6e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 9

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