Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventPublisher ¶
type EventPublisher interface { /* AddEvent adds a new event to one or more Brawler engines. Expects 3 parameters: Name - a name which identifies the event, Kind - an event kind which is checked against the kind match of sinks and State - an event state which contains additional data. All of the given parameter will be accessible from Rumble if the event triggers a Rumble sink. */ AddEvent(name string, kind []string, state map[interface{}]interface{}) error }
EventPublisher is the API for external event sources to publish events to Brawler engines. The event source should use a given EventPublisher object to inject events. Use api.RegisterEventSource to create a new EventPublisher object.
Click to show internal directories.
Click to hide internal directories.