Skip to content
Snippets Groups Projects
Commit ab0968c6 authored by André Sterba's avatar André Sterba
Browse files

Add json tags to event to be able to marshall it

parent 191a7d3b
No related branches found
No related tags found
5 merge requests!376Add additional example application hostname-checker,!349Northbound refactoring to implement NIB concept for devices,!343Add basic application framework and example application to show interaction between events an NBI,!339Create basic venv-manager for use with arista,!324Provide prototype implementation for topology handling
Pipeline #107276 passed
...@@ -4,9 +4,9 @@ import "github.com/google/uuid" ...@@ -4,9 +4,9 @@ import "github.com/google/uuid"
// Event is a event that can be published via the event service as payload. // Event is a event that can be published via the event service as payload.
type Event struct { type Event struct {
ID uuid.UUID ID uuid.UUID `json:"id,omitempty"`
EntityID uuid.UUID EntityID uuid.UUID `json:"entity_id,omitempty"`
Type string Type string `json:"type,omitempty"`
} }
// TypeAdd is an add event. // TypeAdd is an add event.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment