search

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiquorItem

type LiquorItem struct {
	Name  string
	Code  string
	Store string
	Date  time.Time
	Price string
}

LiquorItem represents a found liquor item with only the information we care about

type ProductInfo

type ProductInfo struct {
	ItemCode    string
	Name        string
	BottlePrice string
	CasePrice   string
	Size        string
	Proof       string
	Category    string
}

ProductInfo represents all the possible information about a liquor item including the information we don't really care about

type Searcher

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

Searcher provides functionality to search for liquor items

func NewSearcher

func NewSearcher(userAgent string) *Searcher

NewSearcher creates a new searcher with cookie support

func (*Searcher) AgeVerification

func (s *Searcher) AgeVerification() error

AgeVerification performs the age verification

func (*Searcher) SearchItem

func (s *Searcher) SearchItem(ctx context.Context, item string, zipcode string, distance int) ([]LiquorItem, error)

SearchItem searches for a specific liquor item by name or code

Jump to

Keyboard shortcuts

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