provider

package
v0.0.0-...-3248bb2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 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 AuctionDataProvider

type AuctionDataProvider interface {
	GetData(ctx context.Context, onlyAvailable bool) ([]dto.VehicleInfo, error)
}

type CachedAuctionDataProvider

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

func NewCachedAuctionDataProvider

func NewCachedAuctionDataProvider(dataProvider AuctionDataProvider, cacheLifetime time.Duration) *CachedAuctionDataProvider

func (*CachedAuctionDataProvider) GetData

func (p *CachedAuctionDataProvider) GetData(ctx context.Context, onlyAvailable bool) ([]dto.VehicleInfo, error)

func (*CachedAuctionDataProvider) Run

type HTTPAuctionProvider

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

func NewHTTPActionProvider

func NewHTTPActionProvider(url string) *HTTPAuctionProvider

func (*HTTPAuctionProvider) GetData

func (p *HTTPAuctionProvider) GetData(_ context.Context, onlyAvailable bool) ([]dto.VehicleInfo, error)

Jump to

Keyboard shortcuts

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