task

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Namespace string
	Name      string
}

type Option

type Option struct {
	// Priority is the priority of the task. The lower the number, the higher the priority.
	Priority uint32
	// ScheduledFor tells when this taks should be executed.
	ScheduledFor time.Time
}

Option specifies the option for a task.

type Task

type Task struct {
	Message string
	Group   Group
	Option  Option
}

Task represent a task to be done.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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