api

package
v0.0.0-...-fdfe523 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coin

func Coin(domain string) string

func ItemID

func ItemID(link string) (string, bool)
func Link(id string) string

func StateText

func StateText(domain string, s int) string

Types

type Client

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

func New

func New(ctx context.Context, captchaURL, proxyURL string) (*Client, error)

func (*Client) Search

func (c *Client) Search(id string, item *Item, callback func(Item, int) error) error

type Item

type Item struct {
	ID       string     `json:"id"`
	Domain   string     `json:"domain"`
	Link     string     `json:"link"`
	Title    string     `json:"title"`
	MinPrice float64    `json:"min_price"`
	Prices   [5]float64 `json:"prices"`
}

Jump to

Keyboard shortcuts

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