shared

package
v0.0.0-...-a309d64 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProductMissing = errors.New("no product found")

Functions

This section is empty.

Types

type ProductInfo

type ProductInfo struct {
	ID                 string
	Name               string
	Description        string
	Store              string
	Department         string
	Location           string
	PriceCents         int
	PreviousPriceCents int
	WeightGrams        int
	Timestamp          time.Time
}

ProductInfo is a struct that contains information about a product.

type RLHTTPClient

type RLHTTPClient struct {
	Client      *http.Client
	Ratelimiter *rate.Limiter
}

RLHTTPClient Rate Limited HTTP Client

func (*RLHTTPClient) Do

func (c *RLHTTPClient) Do(req *http.Request) (*http.Response, error)

Do dispatches the HTTP request to the network

Jump to

Keyboard shortcuts

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