Skip to content

Commit

Permalink
Add support for reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Reiter committed Sep 28, 2024
1 parent 59d441e commit 2663e59
Show file tree
Hide file tree
Showing 27 changed files with 2,084 additions and 99 deletions.
43 changes: 21 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions example/grpc_simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/reflection"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

Expand Down Expand Up @@ -145,6 +146,8 @@ func main() {
pb.RegisterDebuggerServer(s, &Server{})
pb.RegisterTestServiceServer(s, &Server{})

reflection.Register(s)

fmt.Println("Listening on", lis.Addr())
if err := s.Serve(lis); err != nil {
log.Fatalf("Failed to serve grpc Server: %v", err)
Expand Down
9 changes: 8 additions & 1 deletion wireman-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wireman-core"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["preiter <[email protected]>"]
description = "Core for wireman"
Expand All @@ -16,8 +16,15 @@ thiserror = "1.0"
http = { version = "1" }
protox = { version = "0.7" }
prost-reflect = { version = "0.14.2", features = ["serde", "text-format"] }
prost = { version = "0.13.2" }
prost-types = { version = "0.13.2" }
tokio = { version = "1", features = ["rt-multi-thread", "sync", "fs"] }
tokio-stream = {version = "0.1", features = ["net"] }
tonic = { version = "0.12", features = ["tls", "tls-webpki-roots"] }
tonic-reflection = { version = "0.12" }

[[example]]
name = "metadata"

[[example]]
name = "reflection"
Loading

0 comments on commit 2663e59

Please sign in to comment.