downloader

package
v0.0.0-...-ae0dd77 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BlockDownloader

type BlockDownloader interface {
	Download(ctx context.Context, blockFile *api.BlockFile) (*api.Block, error)
}

func NewBlockDownloader

func NewBlockDownloader(params BlockDownloaderParams) BlockDownloader

type BlockDownloaderParams

type BlockDownloaderParams struct {
	fx.In
	fxparams.Params
	HttpClient HTTPClient
}

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

func NewHTTPClient

func NewHTTPClient() HTTPClient

Directories

Path Synopsis
Package downloadermocks is a generated GoMock package.
Package downloadermocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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