Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
	// contains filtered or unexported fields
}
    Bus that stores the events and dispatches them to the subscribers
func (*Bus) On ¶
func (b *Bus) On(eventName string, ch EventChannel)
On subscribes a channel to a event on the bus
type Event ¶
type Event struct {
	storage.Entity
	RawData interface{} `json:"-" gorm:"-"`
	Data    string      `json:"data"`
	Event   string      `json:"event"`
}
    Event that triggers a state change
type EventModel ¶
EventModel storage model
func (*EventModel) GetAll ¶
func (m *EventModel) GetAll(tx *storage.Transaction, entries *[]Event) error
GetAll events
 Click to show internal directories. 
   Click to hide internal directories.