2021-06-30 13:34:49 -04:00
|
|
|
package event
|
|
|
|
|
|
|
|
|
|
// sysVersion defines the version of sys events
|
|
|
|
|
const sysVersion = "v0.1"
|
|
|
|
|
|
|
|
|
|
type sysEvent struct {
|
2021-07-28 06:31:16 -04:00
|
|
|
Id Id `json:"-"`
|
2021-06-30 13:34:49 -04:00
|
|
|
Version string `json:"version"`
|
|
|
|
|
Op Op `json:"op,omitempty"`
|
|
|
|
|
Data map[string]interface{} `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EventType is required for all event types by the eventlogger broker
|
2021-07-25 17:40:54 -04:00
|
|
|
func (e *sysEvent) EventType() string { return string(SystemType) }
|