Skip to content

Commit

Permalink
Add RLSDiscoveryService to a separate file
Browse files Browse the repository at this point in the history
Signed-off-by: alekhya.kondapuram <alekhya.kondapuram@salesforce.com>
  • Loading branch information
akondapuram committed Jan 30, 2024
1 parent 38197db commit e6d347f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/ratelimit/config/ratelimit/v3/rls_conf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ enum RateLimitUnit {

// The time unit representing a day.
DAY = 4;
}
}
25 changes: 25 additions & 0 deletions api/ratelimit/service/ratelimit/v3/rls_conf_ds.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";

package ratelimit.service.ratelimit.v3;

import "envoy/service/discovery/v3/discovery.proto";

option java_package = "io.envoyproxy.ratelimit.service.config.v3";
option java_outer_classname = "RlsConfigProto";
option java_multiple_files = true;
option go_package = "github.com/envoyproxy/go-control-plane/ratelimit/service/config/v3;configv3";
option java_generic_services = true;

// [#protodoc-title: Rate Limit Config Discovery Service (RLS Conf DS)]

// Return list of all rate limit configs that rate limit service should be configured with.
service RateLimitConfigDiscoveryService {

rpc StreamRlsConfigs(stream envoy.service.discovery.v3.DiscoveryRequest)
returns (stream envoy.service.discovery.v3.DiscoveryResponse) {
}

rpc FetchRlsConfigs(envoy.service.discovery.v3.DiscoveryRequest)
returns (envoy.service.discovery.v3.DiscoveryResponse) {
}
}

0 comments on commit e6d347f

Please sign in to comment.