-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify gRPC Gateways into Single, Shared lib (#8799)
* moved validator/rpc/gateway under shared, validator/rpc/web is not visiable to the new shared gateway * decided to have one lib with two methods if needed, status and stop are the same, however New and Start are not * moved beacon's gateway to shared and moved the main func to its own /server folder * goftm * gofmt * removed the extra loggin * reduce visibility * tighter visibilty of the shared lib for beacon and validator only for now * fix patterns , ctx needs to be first param * fix comments * gofmt * added enum for the caller id * added unit test for gateway * deprecated .WithDialer to .WithContextDialer * changed the string callerId to uint8, and rearranged the Gateway struct based on the compiler * fix 1 based on comment * iota type Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
- Loading branch information
1 parent
3c9b9e7
commit 8dd2915
Showing
19 changed files
with
305 additions
and
333 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_binary") | ||
load("@prysm//tools/go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"log.go", | ||
"main.go", | ||
], | ||
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/server", | ||
visibility = ["//visibility:private"], | ||
deps = [ | ||
"//shared/gateway:go_default_library", | ||
"//shared/maxprocs:go_default_library", | ||
"@com_github_joonix_log//:go_default_library", | ||
"@com_github_sirupsen_logrus//:go_default_library", | ||
], | ||
) | ||
|
||
go_binary( | ||
name = "server", | ||
embed = [":go_default_library"], | ||
visibility = ["//visibility:private"], | ||
) |
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
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
Oops, something went wrong.