Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type TestProcedureRequest
- type TestProcedureResponse
- type TestServiceClient
- type TestServiceHandler
- type TestServiceKitServer
- type TestServiceServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
const ( TestService_TestProcedure_FullMethodName = "/test.v1.TestService/TestProcedure" TestService_SubestProcedure_FullMethodName = "/test.v1.TestService/SubestProcedure" )
Variables ¶
var File_test_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "test.v1.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TestProcedure", Handler: _TestService_TestProcedure_Handler, }, { MethodName: "SubestProcedure", Handler: _TestService_SubestProcedure_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "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 TestProcedureRequest ¶
type TestProcedureRequest struct {
// contains filtered or unexported fields
}
func (*TestProcedureRequest) Descriptor
deprecated
func (*TestProcedureRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestProcedureRequest.ProtoReflect.Descriptor instead.
func (*TestProcedureRequest) ProtoMessage ¶
func (*TestProcedureRequest) ProtoMessage()
func (*TestProcedureRequest) ProtoReflect ¶
func (x *TestProcedureRequest) ProtoReflect() protoreflect.Message
func (*TestProcedureRequest) Reset ¶
func (x *TestProcedureRequest) Reset()
func (*TestProcedureRequest) String ¶
func (x *TestProcedureRequest) String() string
type TestProcedureResponse ¶
type TestProcedureResponse struct {
// contains filtered or unexported fields
}
func (*TestProcedureResponse) Descriptor
deprecated
func (*TestProcedureResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestProcedureResponse.ProtoReflect.Descriptor instead.
func (*TestProcedureResponse) ProtoMessage ¶
func (*TestProcedureResponse) ProtoMessage()
func (*TestProcedureResponse) ProtoReflect ¶
func (x *TestProcedureResponse) ProtoReflect() protoreflect.Message
func (*TestProcedureResponse) Reset ¶
func (x *TestProcedureResponse) Reset()
func (*TestProcedureResponse) String ¶
func (x *TestProcedureResponse) String() string
type TestServiceClient ¶
type TestServiceClient interface { // TestProcedure is here for the sake of testing comments. TestProcedure(ctx context.Context, in *TestProcedureRequest, opts ...grpc.CallOption) (*TestProcedureResponse, error) SubestProcedure(ctx context.Context, in *subtest.SubtestProcedureRequest, opts ...grpc.CallOption) (*subtest.SubtestProcedureResponse, 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 TestServiceHandler ¶
type TestServiceHandler interface {
ServeGRPC(ctx context.Context, request interface{}) (context.Context, interface{}, error)
}
TestServiceHandler which should be called from the gRPC binding of the service implementation. The incoming request parameter, and returned response parameter, are both gRPC types, not user-domain.
This interface is based on github.com/go-kit/kit/transport/grpc.Handler.
type TestServiceKitServer ¶
type TestServiceKitServer struct { *UnimplementedTestServiceServer TestProcedureHandler TestServiceHandler SubestProcedureHandler TestServiceHandler }
TestServiceKitServer is the Go kit server implementation for TestService service.
func (TestServiceKitServer) SubestProcedure ¶
func (s TestServiceKitServer) SubestProcedure(ctx context.Context, req *subtest.SubtestProcedureRequest) (*subtest.SubtestProcedureResponse, error)
func (TestServiceKitServer) TestProcedure ¶
func (s TestServiceKitServer) TestProcedure(ctx context.Context, req *TestProcedureRequest) (*TestProcedureResponse, error)
TestProcedure is here for the sake of testing comments.
type TestServiceServer ¶
type TestServiceServer interface { // TestProcedure is here for the sake of testing comments. TestProcedure(context.Context, *TestProcedureRequest) (*TestProcedureResponse, error) SubestProcedure(context.Context, *subtest.SubtestProcedureRequest) (*subtest.SubtestProcedureResponse, error) // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTestServiceServer) SubestProcedure ¶
func (UnimplementedTestServiceServer) SubestProcedure(context.Context, *subtest.SubtestProcedureRequest) (*subtest.SubtestProcedureResponse, error)
func (UnimplementedTestServiceServer) TestProcedure ¶
func (UnimplementedTestServiceServer) TestProcedure(context.Context, *TestProcedureRequest) (*TestProcedureResponse, 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.