tasks

package
v0.0.0-...-0bfde0c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close does the cleanup

func Last

func Last(ctx context.Context, name string) int64

Last retrieves the timestamp a task has last run

func Schedule

func Schedule(ctx context.Context, queue, req string)

Schedule creates a background task

func Update

func Update(ctx context.Context, name string, ts int64) error

Update updates the task with a timestamp when it has last run

Types

This section is empty.

Jump to

Keyboard shortcuts

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