You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
681 B
Protocol Buffer
28 lines
681 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package routerclientpb;
|
|
|
|
option go_package = "jochum.dev/jo-micro/router/proto/routerclientpb;routerclientpb";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service RouterClientService {
|
|
rpc Routes (google.protobuf.Empty) returns (RoutesReply) {}
|
|
}
|
|
|
|
message RoutesReply {
|
|
message Route {
|
|
// isGlobal=True == no prefix route
|
|
bool isGlobal = 1;
|
|
string method = 2;
|
|
string path = 3;
|
|
string endpoint = 4;
|
|
repeated string params = 5;
|
|
bool authRequired = 6;
|
|
repeated string ratelimitClientIP = 7;
|
|
repeated string ratelimitUser = 8;
|
|
}
|
|
|
|
string routerURI = 1;
|
|
repeated Route routes = 2;
|
|
} |