Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleSystem ¶
RuleSystem is a deamonlike struct which recives events and executes modules depending on the rules
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
Click to show internal directories.
Click to hide internal directories.