Skip to content
Snippets Groups Projects
Commit e1b60f0b authored by Fabian Seidl's avatar Fabian Seidl
Browse files

added missing field in event struct

parent bb8079c7
No related branches found
No related tags found
1 merge request!478Application framework qol update
...@@ -8,9 +8,10 @@ import ( ...@@ -8,9 +8,10 @@ import (
// 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 `json:"id,omitempty"` ID uuid.UUID `json:"id,omitempty"`
EntityID uuid.UUID `json:"entity_id,omitempty"` EntityID uuid.UUID `json:"entity_id,omitempty"`
Type string `json:"type,omitempty"` Type string `json:"type,omitempty"`
PathsAndValuesMap map[string]string `json:"paths_and_values,omitempty"` // Used to monitor updates happening on YANG paths of network elements.
} }
func getEventFromPayload(payload []byte) (*Event, error) { func getEventFromPayload(payload []byte) (*Event, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment