tasks

package
v0.0.0-...-833dd96 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: AGPL-3.0 Imports: 22 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    *integrations.Slack
	Telegram *integrations.Telegram
	Discord  *integrations.Discord
	Bayes    *bayes.Classifier
}

func (*Context) Countdown

func (c *Context) Countdown()

func (*Context) Notify

func (c *Context) Notify(message string)

func (*Context) NotifyBad

func (c *Context) NotifyBad(message string)

func (*Context) NotifyGood

func (c *Context) NotifyGood(message string)

func (*Context) RSS

func (c *Context) RSS()

func (*Context) Reminders

func (c *Context) Reminders()

func (*Context) SiteChanges

func (c *Context) SiteChanges()

func (*Context) Weather

func (c *Context) Weather()

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