gotask

package module
v0.0.0-...-6e1a1c2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

gotask

Introduction

Golang task scheduling based on cron

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(task Task)

Add a task

func Start

func Start()

Start task worker

func Stop

func Stop()

Stop task worker

func Wait

func Wait()

Await task worker

Types

type Task

type Task interface {
	Name() string
	Scheduled() string
	Run() func()
}

Define task interface

Jump to

Keyboard shortcuts

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