forked from scionproto/scion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sciond: remove global state (scionproto#3785)
Remove the gloabl state from sciond main. Functionality other then initialization is moved to `go/pkg/sciond`. The remaining global state hides in itopo. The command is moved to cobra, and the CLI is changed to fluent style instead of the previous flag style for sub-commands: sciond --config sd.toml sciond help-config sciond version
- Loading branch information
Showing
30 changed files
with
458 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["sciond.go"], | ||
importpath = "github.com/scionproto/scion/go/pkg/sciond", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//go/lib/env:go_default_library", | ||
"//go/lib/infra/messenger/tcp:go_default_library", | ||
"//go/lib/infra/modules/itopo:go_default_library", | ||
"//go/lib/infra/modules/segfetcher:go_default_library", | ||
"//go/lib/log:go_default_library", | ||
"//go/lib/pathdb:go_default_library", | ||
"//go/lib/revcache:go_default_library", | ||
"//go/lib/serrors:go_default_library", | ||
"//go/pkg/sciond/config:go_default_library", | ||
"//go/pkg/sciond/fetcher:go_default_library", | ||
"//go/pkg/sciond/internal/servers:go_default_library", | ||
"//go/pkg/trust:go_default_library", | ||
"//go/pkg/trust/compat:go_default_library", | ||
"//go/proto:go_default_library", | ||
"@com_github_burntsushi_toml//:go_default_library", | ||
"@com_github_opentracing_opentracing_go//:go_default_library", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.