Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewBlockDownloader), fx.Provide(NewHTTPClient), )
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 ¶
func NewHTTPClient ¶
func NewHTTPClient() HTTPClient
Click to show internal directories.
Click to hide internal directories.