diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-13 22:23:19 +0400 | 
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-13 22:23:19 +0400 | 
| commit | b1e17001e3fce2874e4bb1354196c90a5fd7acd0 (patch) | |
| tree | 95aa49d203c37afda042befcfc8c0fd679a7e1e8 /proto | |
| parent | bca576c35e54d5505c62e42e8be416c797e84b6b (diff) | |
better ratelimit, new go structure and better build system
Diffstat (limited to 'proto')
| -rw-r--r-- | proto/nova/ratelimit/ratelimiter.proto | 24 | 
1 files changed, 10 insertions, 14 deletions
diff --git a/proto/nova/ratelimit/ratelimiter.proto b/proto/nova/ratelimit/ratelimiter.proto index 3d7c75a..ff1db0f 100644 --- a/proto/nova/ratelimit/ratelimiter.proto +++ b/proto/nova/ratelimit/ratelimiter.proto @@ -1,24 +1,20 @@  syntax = "proto3"; +import "google/protobuf/empty.proto"; +  package nova.ratelimit.ratelimiter;  service Ratelimiter { -    rpc SubmitTicket(stream BucketSubmitTicketRequest) returns (stream BucketSubmitTicketResponse); +    rpc SubmitTicket(BucketSubmitTicketRequest) returns (google.protobuf.Empty); +    rpc SubmitHeaders(HeadersSubmitRequest) returns (google.protobuf.Empty);  }  message BucketSubmitTicketRequest { -    oneof data { -        string path = 1; -        Headers headers = 2; -    } - -    message Headers { -        map<string, string> headers = 1; -        uint64 precise_time = 2; -    } -     +    string path = 1;  } -message BucketSubmitTicketResponse { -    int64 accepted = 1; -} +message HeadersSubmitRequest { +    map<string, string> headers = 1; +    uint64 precise_time = 2; +    string path = 3; +}
\ No newline at end of file  | 
