RuleSystem

package
v0.0.0-...-a93fc24 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleSystem

type RuleSystem struct {
	EventQueue chan Event.Event
	// contains filtered or unexported fields
}

RuleSystem is a deamonlike struct which recives events and executes modules depending on the rules

func NewRuleSystem

func NewRuleSystem() *RuleSystem

NewRuleSystem is the constructor

func (*RuleSystem) AddDelayedEvent

func (system *RuleSystem) AddDelayedEvent(event *Event.Event, delay time.Duration)

AddDelayedEvent creates a DelayedEvent and starts the countdown

func (RuleSystem) GetDelayedEvent

func (system RuleSystem) GetDelayedEvent() []*Event.DelayedEvent

GetDelayedEvent returns the list of DelayedEvents which are still waiting

func (RuleSystem) IsRunning

func (system RuleSystem) IsRunning() bool

IsRunning returns true if the daemon is running

func (*RuleSystem) Start

func (system *RuleSystem) Start()

Start starts the RuleSystem with its workers

func (RuleSystem) Stop

func (system RuleSystem) Stop()

Stop stops the RuleSystem with its workers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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