Skip to content

Commit

Permalink
Add an HTTP wrapper to the gRPC daemon (#899)
Browse files Browse the repository at this point in the history
* The daemon can spin up an http grpc server in parallel for web clients

* Go back to the non-hardcoded ip

* Add comment for exported server function

* Return the right header in the required header check for the daemon

* When the request errors, mention both headers otherwise the logic gets weird

* Remove extra newline

Co-authored-by: Tomer Elmalem <tomer@stripe.com>
  • Loading branch information
tomelm and tomer-stripe committed Jul 19, 2022
1 parent f37cda3 commit 9c5f16d
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 3 deletions.
6 changes: 6 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,25 @@ require (
require (
github.com/hashicorp/go-hclog v1.2.1
github.com/hashicorp/go-plugin v1.4.4
github.com/improbable-eng/grpc-web v0.15.0
github.com/joho/godotenv v1.4.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/cenkalti/backoff/v4 v4.1.1 // indirect
github.com/chzyer/readline v1.5.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/klauspost/compress v1.11.7 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
Expand All @@ -73,6 +77,7 @@ require (
github.com/onsi/gomega v1.10.1 // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rs/cors v1.7.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/subosito/gotenv v1.4.0 // indirect
Expand All @@ -81,4 +86,5 @@ require (
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
nhooyr.io/websocket v1.8.6 // indirect
)

0 comments on commit 9c5f16d

Please sign in to comment.