mirror of
https://github.com/hanzoai/grpc-web.git
synced 2026-10-30 18:35:37 +00:00
* Update TS/JS dependencies * Update Go dependencies * Revert changes to example Gopkg.toml * Updated node * Fixed codegen and webpack * Pin google.golang.org/grpc to ~1.32.0
75 lines
1.6 KiB
Protocol Buffer
75 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package improbable.grpcweb.test;
|
|
option go_package = "improbable/grpcweb/test";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
message PingRequest {
|
|
enum FailureType {
|
|
NONE = 0;
|
|
CODE = 1;
|
|
reserved 2; // DROP has been removed
|
|
CODE_UNICODE = 3;
|
|
}
|
|
|
|
string value = 1;
|
|
int32 response_count = 2;
|
|
uint32 error_code_returned = 3;
|
|
FailureType failure_type = 4;
|
|
bool check_metadata = 5;
|
|
bool send_headers = 6;
|
|
bool send_trailers = 7;
|
|
|
|
string stream_identifier = 8;
|
|
}
|
|
|
|
message PingResponse {
|
|
string Value = 1;
|
|
int32 counter = 2;
|
|
}
|
|
|
|
message TextMessage {
|
|
string text = 1;
|
|
bool send_headers = 2;
|
|
bool send_trailers = 3;
|
|
}
|
|
|
|
service TestService {
|
|
rpc PingEmpty(google.protobuf.Empty) returns (PingResponse) {}
|
|
|
|
rpc Ping(PingRequest) returns (PingResponse) {}
|
|
|
|
rpc PingError(PingRequest) returns (google.protobuf.Empty) {}
|
|
|
|
rpc PingList(PingRequest) returns (stream PingResponse) {}
|
|
|
|
rpc PingPongBidi(stream PingRequest) returns (stream PingResponse) {}
|
|
|
|
rpc PingStream(stream PingRequest) returns (PingResponse) {}
|
|
|
|
rpc Echo(TextMessage) returns (TextMessage) {}
|
|
}
|
|
|
|
message ContinueStreamRequest {
|
|
string stream_identifier = 1;
|
|
}
|
|
|
|
message CheckStreamClosedRequest {
|
|
string stream_identifier = 1;
|
|
}
|
|
|
|
message CheckStreamClosedResponse {
|
|
bool closed = 1;
|
|
}
|
|
|
|
service TestUtilService {
|
|
rpc ContinueStream(ContinueStreamRequest) returns (google.protobuf.Empty) {}
|
|
|
|
rpc CheckStreamClosed(CheckStreamClosedRequest) returns (CheckStreamClosedResponse) {}
|
|
}
|
|
|
|
service FailService {
|
|
rpc NonExistant(PingRequest) returns (PingResponse) {}
|
|
}
|