Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Merge requests
!343
Add basic application framework and example application to show interaction between events an NBI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add basic application framework and example application to show interaction between events an NBI
istaester/init-application-framework
into
develop
Overview
16
Commits
225
Pipelines
57
Changes
1
Merged
Ghost User
requested to merge
istaester/init-application-framework
into
develop
2 years ago
Overview
16
Commits
225
Pipelines
57
Changes
1
Expand
Depends on:
!340 (merged)
!344 (merged)
!349 (merged)
!342 (merged)
Edited
2 years ago
by
Ghost User
0
0
Merge request reports
Viewing commit
20360663
Show latest version
1 file
+
8
−
6
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
20360663
Apply 1 suggestion(s) to 1 file(s)
· 20360663
Malte Bauch
authored
2 years ago
controller/event/event.go
+
8
−
6
Options
@@ -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
{
Loading