events

Paddy 2015-05-15 Child:e86251b04826

0:2e19675ea220 Go to Latest

events/event.go

Implement events package. This is the package we'll use to keep all the cross-binary "ping" notification code in sync. We'll use it to define shared types and helper functions. For now, just define the Event type. We'll use this to broadcast "something happened!"

History
1 package events
3 import (
4 "time"
5 )
7 type Event struct {
8 System string `json:"system"`
9 Model string `json:"model"`
10 ID string `json:"id"`
11 Action string `json:"action"`
12 Timestamp time.Time `json:"timestamp"`
13 Data interface{} `json:"data"`
14 }