scheduler

package
v0.0.0-...-7d36c00 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	BaseUrl string
	Headers map[string]string
	Cookies map[string]string
}

func (*Dispatcher) Add

func (d *Dispatcher) Add(url string, xpath string, callBack func(xpath.Nodes, request.Data))

func (*Dispatcher) Init

func (d *Dispatcher) Init(firstUrl string, xpath string, callBack func(xpath.Nodes, request.Data), requestLimit time.Duration, page *Pagination)

func (*Dispatcher) Init2

func (d *Dispatcher) Init2(firstUrl string, xpath string, callBack func(xpath.Nodes, request.Data), requestLimit time.Duration, page *PaginationRange)

type Pagination

type Pagination struct {
	StartPage int
	EndPage   int
}

type PaginationRange

type PaginationRange struct {
	StartSize int
	EndSize   int
	EveryAdd  int
}

Jump to

Keyboard shortcuts

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