crawler

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

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

Crawler

func NewCrawler

func NewCrawler(db *gorm.DB) *Crawler

func (*Crawler) Run

func (c *Crawler) Run(concurrency int, stopCh <-chan struct{})

Run intended to be run from a go routine

func (*Crawler) Scheduler

func (c *Crawler) Scheduler(stopCh <-chan struct{})

Scheduler intended to be run from a goroutine

func (*Crawler) Worker

func (c *Crawler) Worker(stopCh <-chan struct{})

type Job

type Job struct {
}

Jump to

Keyboard shortcuts

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