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
!88
Use SPF Viper for configuration
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use SPF Viper for configuration
68-burntsushi-toml-is-unmaintained
into
v.0.1.0-codename-threadbare
Overview
0
Commits
15
Pipelines
3
Changes
1
Merged
Ghost User
requested to merge
68-burntsushi-toml-is-unmaintained
into
v.0.1.0-codename-threadbare
4 years ago
Overview
0
Commits
15
Pipelines
3
Changes
1
Expand
Closes
#68 (closed)
Edited
4 years ago
by
Ghost User
0
0
Merge request reports
Viewing commit
e9246fb5
Prev
Next
Show latest version
1 file
+
1
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e9246fb5
include spf13/viper for config
· e9246fb5
Manuel Kieweg
authored
4 years ago
cmd/gosdn/main.go
+
1
−
13
Options
@@ -2,27 +2,15 @@ package main
import
(
"code.fbi.h-da.de/cocsn/gosdn/nucleus"
"flag"
log
"github.com/sirupsen/logrus"
)
func
main
()
{
// register our supported flags
cliListenAddr
:=
flag
.
String
(
"cli-listen-addr"
,
""
,
"The IP address of the grpcCLI."
)
cliListenPort
:=
flag
.
String
(
"cli-server-port"
,
"55055"
,
"The port number of the grpcCLI"
)
configFileName
:=
flag
.
String
(
"config-file"
,
""
,
"Path to the config file"
)
flag
.
Parse
()
cliSocket
:=
*
cliListenAddr
+
":"
+
*
cliListenPort
log
.
SetLevel
(
log
.
DebugLevel
)
// Setup a channel to communicate if goSDN should shutdown.
IsRunningChannel
:=
make
(
chan
bool
)
// hand off to cmd for further processing
nucleus
.
StartAndRun
(
cliSocket
,
*
configFileName
,
IsRunningChannel
)
// nothing to see here, please move on!
nucleus
.
StartAndRun
(
IsRunningChannel
)
}
Loading