testing

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestService_StreamedSequentialUnaryCall_FullMethodName = "/grpc_gcp.continuous_load_testing.TestService/StreamedSequentialUnaryCall"
)

Variables

View Source
var File_grpc_gcp_testing_test_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL