cron

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Name   string
	Help   string
	When   string
	Action func(types.Context) []types.MsgPayload
}

type Ruleset

type Ruleset struct {
	Type string
	// contains filtered or unexported fields
}

func NewCronRuleset

func NewCronRuleset(name string, rules []Rule) *Ruleset

NewCronRuleset New returns a cron rule set

func (*Ruleset) Daemon

func (r *Ruleset) Daemon()

func (*Ruleset) Shutdown

func (r *Ruleset) Shutdown()

Jump to

Keyboard shortcuts

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