Skip to content
Snippets Groups Projects
Commit 20360663 authored by Malte Bauch's avatar Malte Bauch Committed by Fabian Seidl
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent ab0968c6
No related branches found
No related tags found
2 merge requests!376Add additional example application hostname-checker,!343Add basic application framework and example application to show interaction between events an NBI
Pipeline #107337 failed
This commit is part of merge request !343. Comments created here will be created in the context of that merge request.
...@@ -9,14 +9,16 @@ type Event struct { ...@@ -9,14 +9,16 @@ type Event struct {
Type string `json:"type,omitempty"` Type string `json:"type,omitempty"`
} }
// TypeAdd is an add event. const(
const TypeAdd = "add" // TypeAdd is an add event.
TypeAdd = "add"
// TypeUpdate is an update event. // TypeUpdate is an update event.
const TypeUpdate = "update" TypeUpdate = "update"
// TypeDelete is a delete event. // TypeDelete is a delete event.
const TypeDelete = "delete" TypeDelete = "delete"
)
// NewAddEvent creates a new add event. // NewAddEvent creates a new add event.
func NewAddEvent(entityID uuid.UUID) Event { func NewAddEvent(entityID uuid.UUID) Event {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment