Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gRPC proto for rate-limit xDS Config communication #51

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions ratelimit/config/ratelimit/v3/rls_conf.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
syntax = "proto3";

package ratelimit.config.ratelimit.v3;

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

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

// Rate-limit config model
message RateLimitConfig {
string domain = 1;
repeated RateLimitDescriptor descriptors = 2;
}

// Rate-limit descriptor model
message RateLimitDescriptor {
string key = 1;
string value = 2;
RateLimitPolicy rate_limit = 3;
repeated RateLimitDescriptor descriptors = 4;
bool shadow_mode = 5;
}

// Rate-limit policy model
message RateLimitPolicy {
string unit = 1;
uint32 requests_per_unit = 2;
bool unlimited = 3;
string name = 4;
repeated RateLimitReplace replaces = 5;
}

// Rate-limit replace model
message RateLimitReplace {
string name = 1;
}