Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDetails ¶
type EventDetails struct { Source string Destination string Reason EventReason Error error Args []interface{} }
EventDetails are event details, which EventProvider accepts
func NewEventDetails ¶
func NewEventDetails(event *fsm.Event, reason EventReason) *EventDetails
NewEventDetails is instantiating EventDetails
type EventProvider ¶
type EventProvider interface {
InsertEvent(event *EventDetails) error
}
EventProvider is an interface for providers to register system events
type EventReason ¶
type EventReason string
EventReason is the reason for the events
const ( // EventReasonTransition is for events related to transition of rules from one // state to another EventReasonTransition EventReason = "Transition" // EventReasonRuleProcessing is for events related to processing of rules EventReasonRuleProcessing EventReason = "RuleProcessing" )
Click to show internal directories.
Click to hide internal directories.