2024-03-23 01:34:19 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package micro.graphql;
|
|
|
|
|
|
|
|
option go_package = "go.unistack.org/micro-proto/v3/graphql;graphql";
|
|
|
|
|
|
|
|
import "google/protobuf/descriptor.proto";
|
|
|
|
|
|
|
|
// TODO: Email protobuf-global-extension-registry@google.com to get an extension ID.
|
|
|
|
|
|
|
|
extend google.protobuf.MethodOptions {
|
2024-12-12 12:27:13 +03:00
|
|
|
Rpc rpc = 65030;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
extend google.protobuf.ServiceOptions {
|
2024-12-12 12:27:13 +03:00
|
|
|
Svc svc = 65030;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
extend google.protobuf.FieldOptions {
|
2024-12-12 12:27:13 +03:00
|
|
|
Field field = 65030;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
extend google.protobuf.OneofOptions {
|
2024-12-12 12:27:13 +03:00
|
|
|
Oneof oneof = 65030;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Oneof {
|
2024-12-12 12:27:13 +03:00
|
|
|
bool ignore = 4;
|
|
|
|
string name = 5;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Field {
|
2024-12-12 12:27:13 +03:00
|
|
|
bool required = 1;
|
|
|
|
string params = 2;
|
|
|
|
string dirs = 3;
|
|
|
|
bool ignore = 4;
|
|
|
|
string name = 5;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Rpc {
|
2024-12-12 12:27:13 +03:00
|
|
|
Type type = 1;
|
|
|
|
bool ignore = 2;
|
|
|
|
string name = 3;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Svc {
|
2024-12-12 12:27:13 +03:00
|
|
|
Type type = 1;
|
|
|
|
bool ignore = 2;
|
|
|
|
string name = 3;
|
|
|
|
Upstream upstream = 4;
|
2024-03-23 01:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
enum Type {
|
|
|
|
DEFAULT = 0;
|
|
|
|
MUTATION = 1;
|
|
|
|
QUERY = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Upstream {
|
|
|
|
UPSTREAM_UNSPECIFIED = 0;
|
|
|
|
UPSTREAM_SERVER = 1;
|
|
|
|
UPSTREAM_CLIENT = 2;
|
|
|
|
}
|