scheduler

package
v0.0.0-...-0583c98 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
}

type RiotDTOSchedule

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

func NewSchdule

func NewSchdule() *RiotDTOSchedule

func (*RiotDTOSchedule) Pull

func (s *RiotDTOSchedule) Pull() *Task

func (*RiotDTOSchedule) Push

func (s *RiotDTOSchedule) Push(tasks ...*Task)

func (*RiotDTOSchedule) Schedule

func (s *RiotDTOSchedule) Schedule()

type Scheduler

type Scheduler interface {
	Schedule()
	Push(...*Task)
	Pull() *Task
}

type Task

type Task struct {
	Type     string
	Loc      string
	URL      string
	Priority bool
	Retry    uint
	Data     interface{}
}

Jump to

Keyboard shortcuts

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