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

Merge branch...

Merge branch '226-implement-m2m-protocol-for-event-management-of-sbi-data-plane-communication' into istaester/init-application-framework
parents ac6abd96 20360663
Branches
Tags
2 merge requests!376Add additional example application hostname-checker,!343Add basic application framework and example application to show interaction between events an NBI
Pipeline #107491 failed
...@@ -9,14 +9,16 @@ type Event struct { ...@@ -9,14 +9,16 @@ type Event struct {
Type string `json:"type,omitempty"` Type string `json:"type,omitempty"`
} }
const(
// TypeAdd is an add event. // TypeAdd is an add event.
const TypeAdd = "add" 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 to comment