task

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(t *Task) error

func RecoverTasks

func RecoverTasks()

func Run

func Run()

func Start

func Start()

Types

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) Add

func (m *Manager) Add(t *Task) (err error)

func (*Manager) Marshal

func (m *Manager) Marshal() ([]byte, error)

func (*Manager) Run

func (m *Manager) Run()

func (*Manager) Unmarshal

func (m *Manager) Unmarshal(data []byte) error

type Task

type Task struct {
	ID     string       `json:"id"`
	Domain int          `json:"domain"`
	Types  []int        `json:"types"`
	Key    string       `json:"key"`
	Client *http.Client `json:"-"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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