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
Commits
e1b60f0b
Commit
e1b60f0b
authored
2 years ago
by
Fabian Seidl
Browse files
Options
Downloads
Patches
Plain Diff
added missing field in event struct
parent
bb8079c7
No related branches found
No related tags found
1 merge request
!478
Application framework qol update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application-framework/event/event.go
+4
-3
4 additions, 3 deletions
application-framework/event/event.go
with
4 additions
and
3 deletions
application-framework/event/event.go
+
4
−
3
View file @
e1b60f0b
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment