rulehelpers

package
v0.0.0-...-5849f30 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicRule

type BasicRule struct{}

BasicRule implements the Init(), WindowInterval(), Window() and Close() functions. It is useful for stateless Rules that don't need to implement them. It can be added to your basic rule like so

type MyBasicRule struct {
	rule_helpers.BasicRule
}

func (*BasicRule) Close

func (b *BasicRule) Close() error

func (*BasicRule) Init

func (b *BasicRule) Init(...interface{}) error

func (*BasicRule) SetState

func (b *BasicRule) SetState(_ state.State) error

func (*BasicRule) Window

func (b *BasicRule) Window() ([]output.OutputEvent, error)

func (*BasicRule) WindowInterval

func (b *BasicRule) WindowInterval() int

Jump to

Keyboard shortcuts

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