cron

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

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 11 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

	Send types.SendFunc
	// 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