crawler

package
v0.0.0-...-14f888b Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrawlPancakeSquad

func CrawlPancakeSquad(client *http.Client, id int) error

Types

type PancakeSquad

type PancakeSquad struct {
	ID         SquadID         `json:"tokenId"`
	Image      SquadImage      `json:"image"`
	Attributes SquadAttributes `json:"attributes"`
}

func (PancakeSquad) TableName

func (PancakeSquad) TableName() string

type RawSquadAttribute

type RawSquadAttribute struct {
	Type  string `json:"traitType"`
	Value string `json:"value"`
}

type SquadAttributes

type SquadAttributes map[string]string

func (*SquadAttributes) Scan

func (sa *SquadAttributes) Scan(value interface{}) error

func (*SquadAttributes) UnmarshalJSON

func (sa *SquadAttributes) UnmarshalJSON(data []byte) error

func (SquadAttributes) Value

func (sa SquadAttributes) Value() (driver.Value, error)

type SquadID

type SquadID int

func (*SquadID) UnmarshalJSON

func (sid *SquadID) UnmarshalJSON(data []byte) error

type SquadImage

type SquadImage struct {
	Original  string `json:"original"`
	Thumbnail string `json:"thumbnail"`
}

func (*SquadImage) Scan

func (si *SquadImage) Scan(value interface{}) error

func (SquadImage) Value

func (si SquadImage) Value() (driver.Value, error)

type SquadResp

type SquadResp struct {
	Data *PancakeSquad `json:"data"`
}

Jump to

Keyboard shortcuts

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