tasks

package
v0.0.0-...-7dec8c9 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(tasks []*Task)

Types

type Context

type Context struct {
	Config *types.Config
	DB     *db.DB
	Slack  *slack.Slack
}

func (*Context) Countdown

func (c *Context) Countdown()

func (*Context) Notify

func (c *Context) Notify(message string)

func (*Context) RSS

func (c *Context) RSS()

func (*Context) Reminders

func (c *Context) Reminders()

func (*Context) SiteChanges

func (c *Context) SiteChanges()

type Task

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

func NewTask

func NewTask(interval time.Duration, action func()) *Task

Jump to

Keyboard shortcuts

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