diff --git a/controller/event/event.go b/controller/event/event.go index 1191b2f5ad90153303c4bcc4678119b1fa48357e..68e8fb1c525fbd6318b3a4af5cd4541fce0cad83 100644 --- a/controller/event/event.go +++ b/controller/event/event.go @@ -4,9 +4,9 @@ import "github.com/google/uuid" // Event is a event that can be published via the event service as payload. type Event struct { - ID uuid.UUID - EntityID uuid.UUID - Type string + ID uuid.UUID `json:"id,omitempty"` + EntityID uuid.UUID `json:"entity_id,omitempty"` + Type string `json:"type,omitempty"` } // TypeAdd is an add event.