From ab0968c6e3cd660eaf4f8756ee531b4a8355f1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Sterba?= <andre.sterba@stud.h-da.de> Date: Fri, 1 Jul 2022 11:59:02 +0200 Subject: [PATCH] Add json tags to event to be able to marshall it --- controller/event/event.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/event/event.go b/controller/event/event.go index 1191b2f5a..68e8fb1c5 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. -- GitLab