sched

package
v0.0.0-...-6e90328 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

Scheduler responsible for scheduling cooperation between Spider,Checker and Backend.

func NewScheduler

func NewScheduler() *Scheduler

NewScheduler returns a new scheduler instance with default configuration.

func (*Scheduler) GetBackend

func (sc *Scheduler) GetBackend() backend.NotifyBackend

func (*Scheduler) Start

func (sc *Scheduler) Start()

Start open the background crawling, detection, inspection tasks, and receive the agent and process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳