Documentation ¶
Overview ¶
Package grpc_wrappers_testing contains the test service that helps to test gRPC wrappers.
Index ¶
- Variables
- func Register(r grpc.ServiceRegistrar) *service
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) TestBoolean(context.Context, *wrappers.BoolValue) (*wrappers.BoolValue, error)
- func (UnimplementedServiceServer) TestDouble(context.Context, *wrappers.DoubleValue) (*wrappers.DoubleValue, error)
- func (UnimplementedServiceServer) TestInteger(context.Context, *wrappers.Int64Value) (*wrappers.Int64Value, error)
- func (UnimplementedServiceServer) TestString(context.Context, *wrappers.StringValue) (*wrappers.StringValue, error)
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_test_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.wrappers.testing.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TestString", Handler: _Service_TestString_Handler, }, { MethodName: "TestInteger", Handler: _Service_TestInteger_Handler, }, { MethodName: "TestBoolean", Handler: _Service_TestBoolean_Handler, }, { MethodName: "TestDouble", Handler: _Service_TestDouble_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "test.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func Register ¶
func Register(r grpc.ServiceRegistrar) *service
Register registers a test service that could be used for the testing gRPC wrappers
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type ServiceClient ¶
type ServiceClient interface { TestString(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*wrappers.StringValue, error) TestInteger(ctx context.Context, in *wrappers.Int64Value, opts ...grpc.CallOption) (*wrappers.Int64Value, error) TestBoolean(ctx context.Context, in *wrappers.BoolValue, opts ...grpc.CallOption) (*wrappers.BoolValue, error) TestDouble(ctx context.Context, in *wrappers.DoubleValue, opts ...grpc.CallOption) (*wrappers.DoubleValue, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { TestString(context.Context, *wrappers.StringValue) (*wrappers.StringValue, error) TestInteger(context.Context, *wrappers.Int64Value) (*wrappers.Int64Value, error) TestBoolean(context.Context, *wrappers.BoolValue) (*wrappers.BoolValue, error) TestDouble(context.Context, *wrappers.DoubleValue) (*wrappers.DoubleValue, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) TestBoolean ¶
func (UnimplementedServiceServer) TestDouble ¶
func (UnimplementedServiceServer) TestDouble(context.Context, *wrappers.DoubleValue) (*wrappers.DoubleValue, error)
func (UnimplementedServiceServer) TestInteger ¶
func (UnimplementedServiceServer) TestInteger(context.Context, *wrappers.Int64Value) (*wrappers.Int64Value, error)
func (UnimplementedServiceServer) TestString ¶
func (UnimplementedServiceServer) TestString(context.Context, *wrappers.StringValue) (*wrappers.StringValue, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.