crawler

package
v0.0.0-...-441576f Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParamsPostBill

func NewParamsPostBill(ID string, IfrmpPrcsRstrNo string) map[string]string

func NewParamsPostBills

func NewParamsPostBills(
	dateFrom string,
	dateTo string,
	page int,
) map[string]string

Types

type BillListResultFormat

type BillListResultFormat struct {
	Result struct {
		List []models.Bill `json:"list"`
	} `json:"result"`
}

type BillResultFormat

type BillResultFormat struct {
	FileList []models.File `json:"dntcFileList"`
}

type BillsCountResultFormat

type BillsCountResultFormat struct {
	Result struct {
		Vo struct {
			TotalCount int `json:"totalPage"`
		}
	} `json:"result"`
}

type Crawler

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

func (*Crawler) DownloadFile

func (c *Crawler) DownloadFile(billID string, file models.File, ch chan string)

func (*Crawler) FetchBill

func (c *Crawler) FetchBill(bill *models.Bill)

func (*Crawler) FetchBills

func (c *Crawler) FetchBills(
	dateFrom string,
	dateTo string,
)

func (*Crawler) NewBillCrawler

func (c *Crawler) NewBillCrawler() *colly.Collector

func (*Crawler) NewBillsCrawler

func (c *Crawler) NewBillsCrawler() *colly.Collector

type ICrawler

type ICrawler interface {
	FetchBill(bill *models.Bill)
	FetchBills(dateFrom string, dateTo string)
	NewBillsCrawler() *colly.Collector
	NewBillCrawler() *colly.Collector
}

type Params

type Params map[string]string

Jump to

Keyboard shortcuts

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