hermes

package
v0.0.0-...-6af8274 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Product

type Product struct {
	SKU   string `json:"sku"`
	Title string `json:"title"`
	URL   string `json:"url"`
}

Product Product represent single product info

func (*Product) GetDetailURL

func (p *Product) GetDetailURL() string

type ProductResponse

type ProductResponse struct {
	Total    int64      `json:"total"`
	Products []*Product `json:"products"`
}

func CrawlGoods

func CrawlGoods(ctx context.Context, query string) (*ProductResponse, error)

Jump to

Keyboard shortcuts

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