mercarigo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDSASignature

type ECDSASignature struct {
	R, S *big.Int
}

type MercariItem

type MercariItem struct {
	ProductId   string       `json:"id"`
	ProductName string       `json:"name"`
	Price       int          `json:"price"`
	Created     int64        `json:"created"`
	Updated     int64        `json:"updated"`
	Condition   Name_Id_Unit `json:"item_condition"`
	ImageURL    []string     `json:"thumbnails"`
	Status      string       `json:"status"` // on_sale / trading / sold_out
	Seller      Name_Id_Unit `json:"seller"`
	Buyer       Name_Id_Unit `json:"buyer"`
	Shipping    Name_Id_Unit `json:"shipping_from_area"`
}
func Mercari_search(name string, sort string, order string, status string, limit int, times int) ([]MercariItem, error)

func (*MercariItem) GetProductURL

func (item *MercariItem) GetProductURL() string

type Name_Id_Unit

type Name_Id_Unit struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

type ResultData

type ResultData struct {
	Meta ResultMetaData `json:"meta"`
	Data []MercariItem  `json:"data"`
}

type ResultMetaData

type ResultMetaData struct {
	HasNext  bool   `json:"has_next"`
	NextPage int    `json:"next_page"`
	Sort     string `json:"sort"`
	Order    string `json:"order"`
}

Jump to

Keyboard shortcuts

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