Browse Source

EventResult

pull/1842/head
Ethan Buchman 9 years ago
parent
commit
a5f26a8999
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      events.go

+ 5
- 0
events.go View File

@ -12,6 +12,11 @@ type EventData interface {
AssertIsEventData()
}
type EventResult struct {
Event string `json:"event"`
Data EventData `json:"data"`
}
// reactors and other modules should export
// this interface to become eventable
type Eventable interface {


Loading…
Cancel
Save