Versions in this module Expand all Collapse all v1 v1.0.0 Feb 20, 2022 Changes in this version + const ENDPOINT + func ShortenListings(l []Listing) []string + func WithPriceCeil(px int) func(r *Req) + func WithPriceFloor(px int) func(r *Req) + func WithRecent(r *Req) + func WithSearch(searchTerm string) func(r *Req) + type Cache struct + Alerts map[string]bool + func NewCache() *Cache + func (c *Cache) ProcessAndStore(listings []Listing, cb func(listing Listing) error) + func (c *Cache) Store(listings []Listing) + type Listing struct + Condition string + Description string + ID string + Price float64 + Time string + Title string + Url string + User string + func (l *Listing) Print() + func (l *Listing) Sprint() string + type Req struct + func NewReq(opts ...func(*Req)) *Req + func (r *Req) Get() ([]Listing, error) + func (r *Req) GetSearchTerm() string