brawler

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: CC0-1.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

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