Documentation ¶
Index ¶
- type Client
- type ItemEntry
- type Region
- type SearchQuery
- func (q *SearchQuery) ExcludeWords(words string) *SearchQuery
- func (q *SearchQuery) Manufacturer(manufacturer string) *SearchQuery
- func (q *SearchQuery) MaxPrice(max int) *SearchQuery
- func (q *SearchQuery) MinPrice(min int) *SearchQuery
- func (q *SearchQuery) Model(model string) *SearchQuery
- func (q *SearchQuery) Phrase(phrase string) *SearchQuery
- func (q *SearchQuery) Query(query string) *SearchQuery
- func (q *SearchQuery) Site(site string) *SearchQuery
- func (q *SearchQuery) Words(words string) *SearchQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client to access staticICE.
type ItemEntry ¶
type ItemEntry struct { Description string Seller string Link string LastUpdated time.Time Price float64 }
ItemEntry represents an entry from staticICE's search.
type SearchQuery ¶
type SearchQuery struct {
// contains filtered or unexported fields
}
SearchQuery represents a query to search with.
func (*SearchQuery) ExcludeWords ¶
func (q *SearchQuery) ExcludeWords(words string) *SearchQuery
ExcludeWords sets a space seperated list of words that the listing must not include.
func (*SearchQuery) Manufacturer ¶
func (q *SearchQuery) Manufacturer(manufacturer string) *SearchQuery
Manufacturer sets a comma seperated list of manufacturers to search for.
func (*SearchQuery) MaxPrice ¶
func (q *SearchQuery) MaxPrice(max int) *SearchQuery
MaxPrice sets the maximum price for the search query in the local currency.
func (*SearchQuery) MinPrice ¶
func (q *SearchQuery) MinPrice(min int) *SearchQuery
MinPrice sets the minimum price for the search query in the local currency.
func (*SearchQuery) Model ¶
func (q *SearchQuery) Model(model string) *SearchQuery
Model sets a comma seperated list of model names/numbers to search for.
func (*SearchQuery) Phrase ¶
func (q *SearchQuery) Phrase(phrase string) *SearchQuery
Phrase sets an exact phrase that the listing must contain.
func (*SearchQuery) Query ¶
func (q *SearchQuery) Query(query string) *SearchQuery
Query sets the normal search query to use.
func (*SearchQuery) Site ¶
func (q *SearchQuery) Site(site string) *SearchQuery
Site sets a comma seperated list of strings to specify what the domain name must contain.
func (*SearchQuery) Words ¶
func (q *SearchQuery) Words(words string) *SearchQuery
Words sets a space seperated list of words that the listing must contain.