Skip to content

Commit

Permalink
Wire up grpc client bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePumpingLemma committed Aug 29, 2024
1 parent b8d99fd commit e4e786a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app.cash.backfila.client
object Connectors {
const val HTTP = "HTTP"
const val ENVOY = "ENVOY"
const val GRPC = "GRPC"
}

data class HttpHeader(val name: String, val value: String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import app.cash.backfila.client.BackfilaCallbackConnectorProvider
import app.cash.backfila.client.Connectors
import app.cash.backfila.client.EnvoyCallbackConnectorProvider
import app.cash.backfila.client.ForConnectors
import app.cash.backfila.client.GrpcCallbackConnectorProvider
import app.cash.backfila.client.HttpCallbackConnectorProvider
import app.cash.backfila.dashboard.BackfilaDashboardModule
import app.cash.backfila.dashboard.BackfilaWebActionsModule
Expand Down Expand Up @@ -60,6 +61,9 @@ class BackfilaServiceModule(
newMapBinder<String, BackfilaCallbackConnectorProvider>(ForConnectors::class)
.addBinding(Connectors.ENVOY)
.to(EnvoyCallbackConnectorProvider::class.java)
newMapBinder<String, BackfilaCallbackConnectorProvider>(ForConnectors::class)
.addBinding(Connectors.GRPC)
.to(GrpcCallbackConnectorProvider::class.java)

newMultibinder<Interceptor>(HttpClientNetworkInterceptor::class)

Expand Down

0 comments on commit e4e786a

Please sign in to comment.