package grpc_testing
import "google.golang.org/grpc/stats/grpc_testing"
Index ¶
- Variables
- func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
- type SimpleRequest
- func (*SimpleRequest) Descriptor() ([]byte, []int)
- func (x *SimpleRequest) GetId() int32
- func (*SimpleRequest) ProtoMessage()
- func (x *SimpleRequest) ProtoReflect() protoreflect.Message
- func (x *SimpleRequest) Reset()
- func (x *SimpleRequest) String() string
- type SimpleResponse
- func (*SimpleResponse) Descriptor() ([]byte, []int)
- func (x *SimpleResponse) GetId() int32
- func (*SimpleResponse) ProtoMessage()
- func (x *SimpleResponse) ProtoReflect() protoreflect.Message
- func (x *SimpleResponse) Reset()
- func (x *SimpleResponse) String() string
- type TestServiceClient
- type TestServiceServer
- type TestService_ClientStreamCallClient
- type TestService_ClientStreamCallServer
- type TestService_FullDuplexCallClient
- type TestService_FullDuplexCallServer
- type TestService_ServerStreamCallClient
- type TestService_ServerStreamCallServer
- type UnimplementedTestServiceServer
- func (UnimplementedTestServiceServer) ClientStreamCall(TestService_ClientStreamCallServer) error
- func (UnimplementedTestServiceServer) FullDuplexCall(TestService_FullDuplexCallServer) error
- func (UnimplementedTestServiceServer) ServerStreamCall(*SimpleRequest, TestService_ServerStreamCallServer) error
- func (UnimplementedTestServiceServer) UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error)
- type UnsafeTestServiceServer
Variables ¶
var File_stats_grpc_testing_test_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
Types ¶
type SimpleRequest ¶
type SimpleRequest struct { Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SimpleRequest) Descriptor ¶
func (*SimpleRequest) Descriptor() ([]byte, []int)
Deprecated: Use SimpleRequest.ProtoReflect.Descriptor instead.
func (*SimpleRequest) GetId ¶
func (x *SimpleRequest) GetId() int32
func (*SimpleRequest) ProtoMessage ¶
func (*SimpleRequest) ProtoMessage()
func (*SimpleRequest) ProtoReflect ¶
func (x *SimpleRequest) ProtoReflect() protoreflect.Message
func (*SimpleRequest) Reset ¶
func (x *SimpleRequest) Reset()
func (*SimpleRequest) String ¶
func (x *SimpleRequest) String() string
type SimpleResponse ¶
type SimpleResponse struct { Id int32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SimpleResponse) Descriptor ¶
func (*SimpleResponse) Descriptor() ([]byte, []int)
Deprecated: Use SimpleResponse.ProtoReflect.Descriptor instead.
func (*SimpleResponse) GetId ¶
func (x *SimpleResponse) GetId() int32
func (*SimpleResponse) ProtoMessage ¶
func (*SimpleResponse) ProtoMessage()
func (*SimpleResponse) ProtoReflect ¶
func (x *SimpleResponse) ProtoReflect() protoreflect.Message
func (*SimpleResponse) Reset ¶
func (x *SimpleResponse) Reset()
func (*SimpleResponse) String ¶
func (x *SimpleResponse) String() string
type TestServiceClient ¶
type TestServiceClient interface { // One request followed by one response. // The server returns the client id as-is. UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error) // A sequence of requests with each request served by the server immediately. // As one request could lead to multiple responses, this interface // demonstrates the idea of full duplexing. FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_FullDuplexCallClient, error) // Client stream ClientStreamCall(ctx context.Context, opts ...grpc.CallOption) (TestService_ClientStreamCallClient, error) // Server stream ServerStreamCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (TestService_ServerStreamCallClient, 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.
func NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { // One request followed by one response. // The server returns the client id as-is. UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error) // A sequence of requests with each request served by the server immediately. // As one request could lead to multiple responses, this interface // demonstrates the idea of full duplexing. FullDuplexCall(TestService_FullDuplexCallServer) error // Client stream ClientStreamCall(TestService_ClientStreamCallServer) error // Server stream ServerStreamCall(*SimpleRequest, TestService_ServerStreamCallServer) error // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility
type TestService_ClientStreamCallClient ¶
type TestService_ClientStreamCallClient interface { Send(*SimpleRequest) error CloseAndRecv() (*SimpleResponse, error) grpc.ClientStream }
type TestService_ClientStreamCallServer ¶
type TestService_ClientStreamCallServer interface { SendAndClose(*SimpleResponse) error Recv() (*SimpleRequest, error) grpc.ServerStream }
type TestService_FullDuplexCallClient ¶
type TestService_FullDuplexCallClient interface { Send(*SimpleRequest) error Recv() (*SimpleResponse, error) grpc.ClientStream }
type TestService_FullDuplexCallServer ¶
type TestService_FullDuplexCallServer interface { Send(*SimpleResponse) error Recv() (*SimpleRequest, error) grpc.ServerStream }
type TestService_ServerStreamCallClient ¶
type TestService_ServerStreamCallClient interface { Recv() (*SimpleResponse, error) grpc.ClientStream }
type TestService_ServerStreamCallServer ¶
type TestService_ServerStreamCallServer interface { Send(*SimpleResponse) error grpc.ServerStream }
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTestServiceServer) ClientStreamCall ¶
func (UnimplementedTestServiceServer) ClientStreamCall(TestService_ClientStreamCallServer) error
func (UnimplementedTestServiceServer) FullDuplexCall ¶
func (UnimplementedTestServiceServer) FullDuplexCall(TestService_FullDuplexCallServer) error
func (UnimplementedTestServiceServer) ServerStreamCall ¶
func (UnimplementedTestServiceServer) ServerStreamCall(*SimpleRequest, TestService_ServerStreamCallServer) error
func (UnimplementedTestServiceServer) UnaryCall ¶
func (UnimplementedTestServiceServer) UnaryCall(context.Context, *SimpleRequest) (*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.
Source Files ¶
test.pb.go test_grpc.pb.go
- Version
- v1.33.3
- Published
- Jan 11, 2021
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 13 minutes ago –
Tools for package owners.