testpb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_goadesign_goagen_test_proto protoreflect.FileDescriptor
View Source
var Test_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test.Test",
	HandlerType: (*TestServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GrpcMethod",
			Handler:    _Test_GrpcMethod_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GrpcStream",
			Handler:       _Test_GrpcStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "goadesign_goagen_test.proto",
}

Test_ServiceDesc is the grpc.ServiceDesc for Test service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTestServer

func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer)

Types

type GrpcMethodRequest

type GrpcMethodRequest struct {

	// String operand
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// Int operand
	I int32 `protobuf:"zigzag32,2,opt,name=i,proto3" json:"i,omitempty"`
	// contains filtered or unexported fields
}

func (*GrpcMethodRequest) Descriptor deprecated

func (*GrpcMethodRequest) Descriptor() ([]byte, []int)

Deprecated: Use GrpcMethodRequest.ProtoReflect.Descriptor instead.

func (*GrpcMethodRequest) GetI

func (x *GrpcMethodRequest) GetI() int32

func (*GrpcMethodRequest) GetS

func (x *GrpcMethodRequest) GetS() string

func (*GrpcMethodRequest) ProtoMessage

func (*GrpcMethodRequest) ProtoMessage()

func (*GrpcMethodRequest) ProtoReflect

func (x *GrpcMethodRequest) ProtoReflect() protoreflect.Message

func (*GrpcMethodRequest) Reset

func (x *GrpcMethodRequest) Reset()

func (*GrpcMethodRequest) String

func (x *GrpcMethodRequest) String() string

type GrpcMethodResponse

type GrpcMethodResponse struct {

	// String operand
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// Int operand
	I int32 `protobuf:"zigzag32,2,opt,name=i,proto3" json:"i,omitempty"`
	// contains filtered or unexported fields
}

func (*GrpcMethodResponse) Descriptor deprecated

func (*GrpcMethodResponse) Descriptor() ([]byte, []int)

Deprecated: Use GrpcMethodResponse.ProtoReflect.Descriptor instead.

func (*GrpcMethodResponse) GetI

func (x *GrpcMethodResponse) GetI() int32

func (*GrpcMethodResponse) GetS

func (x *GrpcMethodResponse) GetS() string

func (*GrpcMethodResponse) ProtoMessage

func (*GrpcMethodResponse) ProtoMessage()

func (*GrpcMethodResponse) ProtoReflect

func (x *GrpcMethodResponse) ProtoReflect() protoreflect.Message

func (*GrpcMethodResponse) Reset

func (x *GrpcMethodResponse) Reset()

func (*GrpcMethodResponse) String

func (x *GrpcMethodResponse) String() string

type GrpcStreamResponse

type GrpcStreamResponse struct {

	// String operand
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// Int operand
	I int32 `protobuf:"zigzag32,2,opt,name=i,proto3" json:"i,omitempty"`
	// contains filtered or unexported fields
}

func (*GrpcStreamResponse) Descriptor deprecated

func (*GrpcStreamResponse) Descriptor() ([]byte, []int)

Deprecated: Use GrpcStreamResponse.ProtoReflect.Descriptor instead.

func (*GrpcStreamResponse) GetI

func (x *GrpcStreamResponse) GetI() int32

func (*GrpcStreamResponse) GetS

func (x *GrpcStreamResponse) GetS() string

func (*GrpcStreamResponse) ProtoMessage

func (*GrpcStreamResponse) ProtoMessage()

func (*GrpcStreamResponse) ProtoReflect

func (x *GrpcStreamResponse) ProtoReflect() protoreflect.Message

func (*GrpcStreamResponse) Reset

func (x *GrpcStreamResponse) Reset()

func (*GrpcStreamResponse) String

func (x *GrpcStreamResponse) String() string

type GrpcStreamStreamingRequest

type GrpcStreamStreamingRequest struct {

	// String operand
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// Int operand
	I int32 `protobuf:"zigzag32,2,opt,name=i,proto3" json:"i,omitempty"`
	// contains filtered or unexported fields
}

func (*GrpcStreamStreamingRequest) Descriptor deprecated

func (*GrpcStreamStreamingRequest) Descriptor() ([]byte, []int)

Deprecated: Use GrpcStreamStreamingRequest.ProtoReflect.Descriptor instead.

func (*GrpcStreamStreamingRequest) GetI

func (*GrpcStreamStreamingRequest) GetS

func (*GrpcStreamStreamingRequest) ProtoMessage

func (*GrpcStreamStreamingRequest) ProtoMessage()

func (*GrpcStreamStreamingRequest) ProtoReflect

func (*GrpcStreamStreamingRequest) Reset

func (x *GrpcStreamStreamingRequest) Reset()

func (*GrpcStreamStreamingRequest) String

func (x *GrpcStreamStreamingRequest) String() string

type TestClient

type TestClient interface {
	// GrpcMethod implements grpc_method.
	GrpcMethod(ctx context.Context, in *GrpcMethodRequest, opts ...grpc.CallOption) (*GrpcMethodResponse, error)
	// GrpcStream implements grpc_stream.
	GrpcStream(ctx context.Context, opts ...grpc.CallOption) (Test_GrpcStreamClient, error)
}

TestClient is the client API for Test 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 NewTestClient

func NewTestClient(cc grpc.ClientConnInterface) TestClient

type TestServer

type TestServer interface {
	// GrpcMethod implements grpc_method.
	GrpcMethod(context.Context, *GrpcMethodRequest) (*GrpcMethodResponse, error)
	// GrpcStream implements grpc_stream.
	GrpcStream(Test_GrpcStreamServer) error
	// contains filtered or unexported methods
}

TestServer is the server API for Test service. All implementations must embed UnimplementedTestServer for forward compatibility

type Test_GrpcStreamClient

type Test_GrpcStreamClient interface {
	Send(*GrpcStreamStreamingRequest) error
	Recv() (*GrpcStreamResponse, error)
	grpc.ClientStream
}

type Test_GrpcStreamServer

type Test_GrpcStreamServer interface {
	Send(*GrpcStreamResponse) error
	Recv() (*GrpcStreamStreamingRequest, error)
	grpc.ServerStream
}

type UnimplementedTestServer

type UnimplementedTestServer struct {
}

UnimplementedTestServer must be embedded to have forward compatible implementations.

func (UnimplementedTestServer) GrpcMethod

func (UnimplementedTestServer) GrpcStream

type UnsafeTestServer

type UnsafeTestServer interface {
	// contains filtered or unexported methods
}

UnsafeTestServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServer will result in compilation errors.

Jump to

Keyboard shortcuts

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