Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type TestServiceClient
- type TestServiceServer
- type TestService_StreamedSequentialUnaryCallClient
- type TestService_StreamedSequentialUnaryCallServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
const (
TestService_StreamedSequentialUnaryCall_FullMethodName = "/grpc_gcp.continuous_load_testing.TestService/StreamedSequentialUnaryCall"
)
Variables ¶
var File_grpc_gcp_testing_test_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc_gcp.continuous_load_testing.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "StreamedSequentialUnaryCall", Handler: _TestService_StreamedSequentialUnaryCall_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "grpc_gcp/testing/test.proto", }
TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type TestServiceClient ¶
type TestServiceClient interface { // A bidirectional streaming RPC where messages are in sequence in the same bidi stream. // The client sends one request followed by one response. // This sequential message exchange over a bidi stream is used to benchmark // latency in Streamed Batching. StreamedSequentialUnaryCall(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[messages.SimpleRequest, messages.SimpleResponse], error) }
TestServiceClient is the client API for TestService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
A simple service to test the various types of RPCs and experiment with performance with various types of payload.
func NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { // A bidirectional streaming RPC where messages are in sequence in the same bidi stream. // The client sends one request followed by one response. // This sequential message exchange over a bidi stream is used to benchmark // latency in Streamed Batching. StreamedSequentialUnaryCall(grpc.BidiStreamingServer[messages.SimpleRequest, messages.SimpleResponse]) error // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility.
A simple service to test the various types of RPCs and experiment with performance with various types of payload.
type TestService_StreamedSequentialUnaryCallClient ¶
type TestService_StreamedSequentialUnaryCallClient = grpc.BidiStreamingClient[messages.SimpleRequest, messages.SimpleResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_StreamedSequentialUnaryCallServer ¶
type TestService_StreamedSequentialUnaryCallServer = grpc.BidiStreamingServer[messages.SimpleRequest, messages.SimpleResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct{}
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTestServiceServer) StreamedSequentialUnaryCall ¶
func (UnimplementedTestServiceServer) StreamedSequentialUnaryCall(grpc.BidiStreamingServer[messages.SimpleRequest, messages.SimpleResponse]) error
type UnsafeTestServiceServer ¶
type UnsafeTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.