testv1

package module
v0.0.0-...-0d884a2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestService_TestProcedure_FullMethodName   = "/test.v1.TestService/TestProcedure"
	TestService_SubestProcedure_FullMethodName = "/test.v1.TestService/SubestProcedure"
)

Variables

View Source
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.

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 (TestServiceKitServer) TestProcedure

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) TestProcedure

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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