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
ac6abd96
Commit
ac6abd96
authored
3 years ago
by
André Sterba
Browse files
Options
Downloads
Patches
Plain Diff
Remove not needed service interface
parent
7ca03889
No related branches found
No related tags found
2 merge requests
!376
Add additional example application hostname-checker
,
!343
Add basic application framework and example application to show interaction between events an NBI
Pipeline
#107329
passed
3 years ago
Stage: build
Stage: test
Stage: analyze
Stage: integration-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controller/eventService/utils.go
+0
-6
0 additions, 6 deletions
controller/eventService/utils.go
with
0 additions
and
6 deletions
controller/eventService/utils.go
+
0
−
6
View file @
ac6abd96
...
@@ -11,12 +11,6 @@ func amqpURIBuilder(prefix, user, pass, host, port string) string {
...
@@ -11,12 +11,6 @@ func amqpURIBuilder(prefix, user, pass, host, port string) string {
return
fmt
.
Sprintf
(
"%s%s:%s@%s:%s/"
,
prefix
,
user
,
pass
,
host
,
port
)
return
fmt
.
Sprintf
(
"%s%s:%s@%s:%s/"
,
prefix
,
user
,
pass
,
host
,
port
)
}
}
// Service is the event service
type
Service
interface
{
PublishEvent
(
topic
string
,
event
event
.
Event
)
error
CloseConnection
()
}
// MockEventService is used to setup a connection to a broker and publish events to topics.
// MockEventService is used to setup a connection to a broker and publish events to topics.
type
MockEventService
struct
{
type
MockEventService
struct
{
Queue
map
[
string
][]
event
.
Event
Queue
map
[
string
][]
event
.
Event
...
...
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