fetcher

package
v0.0.0-...-dad2dbc Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetch

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

func New

func New(r resource.Resource) *Fetch

func (Fetch) FetchAsync

func (f Fetch) FetchAsync(ch chan<- product.Product, wg *sync.WaitGroup)

func (Fetch) FetchSync

func (f Fetch) FetchSync() []product.Product

type Fetcher

type Fetcher interface {
	FetchSync() []product.Product
	FetchAsync(ch chan<- product.Product, group *sync.WaitGroup)
}

Jump to

Keyboard shortcuts

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