rule

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options = []rulebot.Option{
	rulebot.RegisterRuleset(New(rules)),
}

Functions

func New

func New(rules []Rule) *cronRuleset

New returns a cron rule set

Types

type Rule

type Rule struct {
	Name   string
	When   string
	Action func(context.Context, rulebot.IComponent) []result.Result
}

Jump to

Keyboard shortcuts

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