Documentation ¶ Index ¶ Variables type Event func Unmarshal(data []byte) (Event, error) Constants ¶ This section is empty. Variables ¶ View Source var ( // NatsSubject is the base subject on which site events are published. The sub subjects contain the site id. // example: 'site-event.my-site' NatsSubject = "sites-event" ) Functions ¶ This section is empty. Types ¶ type Event ¶ type Event struct { Train string `json:"train"` Event string `json:"event"` Site string `json:"site"` } func Unmarshal ¶ func Unmarshal(data []byte) (Event, error) Source Files ¶ View all Source files siteevent.go Click to show internal directories. Click to hide internal directories.