Skip to content

Commit

Permalink
connect to mdcb using grpc, allow for grpc encoding to be human reada…
Browse files Browse the repository at this point in the history
…ble (json)
  • Loading branch information
lonelycode committed Aug 15, 2024
1 parent e88d13f commit 9afc419
Show file tree
Hide file tree
Showing 20 changed files with 4,347 additions and 139 deletions.
2 changes: 1 addition & 1 deletion apidef/oas/linter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestXTykGateway_Lint(t *testing.T) {
settings.Server.EventHandlers[i].Webhook.CoolDownPeriod = ReadableDuration(time.Second * 20)
}

for idx, _ := range settings.Middleware.Operations {
for idx := range settings.Middleware.Operations {
settings.Middleware.Operations[idx].CircuitBreaker.Threshold = 0.5
}

Expand Down
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ type WebHookHandlerConf struct {

type SlaveOptionsConfig struct {
// Set to `true` to connect a worker Gateway using RPC.
UseRPC bool `json:"use_rpc"`
UseRPC bool `json:"use_rpc"`
RPCType string `json:"rpc_type"`
GRPCForceJSON bool `json:"grpc_force_json"`

// Set this option to `true` to use an SSL RPC connection.
UseSSL bool `json:"use_ssl"`
Expand Down
Loading

0 comments on commit 9afc419

Please sign in to comment.