Compare commits
1 Commits
ad8e4ebacf
...
82ca9f2b0c
| Author | SHA1 | Date | |
|---|---|---|---|
| 82ca9f2b0c |
31
dev.proto
Normal file
31
dev.proto
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
option go_package = "git.itzana.me/strafesnet/go-grpc/dev";
|
||||||
|
|
||||||
|
package dev;
|
||||||
|
|
||||||
|
service DevService {
|
||||||
|
rpc Validate(APIValidationRequest) returns (APIValidationResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
message APIValidationRequest {
|
||||||
|
string Service = 1;
|
||||||
|
string Permission = 2;
|
||||||
|
string Key = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message APIValidationResponse {
|
||||||
|
// Response
|
||||||
|
bool Valid = 1;
|
||||||
|
string ErrorMessage = 2;
|
||||||
|
int32 StatusCode = 3;
|
||||||
|
// Remaining limits
|
||||||
|
uint64 RemainingBurst = 4;
|
||||||
|
uint64 RemainingDaily = 5;
|
||||||
|
uint64 RemainingMonthly = 6;
|
||||||
|
// Quota
|
||||||
|
uint64 BurstLimit = 7;
|
||||||
|
uint64 BurstDurationSeconds = 8;
|
||||||
|
uint64 DailyLimit = 9;
|
||||||
|
uint64 MonthlyLimit = 10;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user