test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goreuse.test.TestService",
	HandlerType: (*TestServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTestMessage",
			Handler:    _TestService_GetTestMessage_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 GetTestMessageRequest

type GetTestMessageRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTestMessageRequest) Descriptor deprecated

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

Deprecated: Use GetTestMessageRequest.ProtoReflect.Descriptor instead.

func (*GetTestMessageRequest) GetId

func (x *GetTestMessageRequest) GetId() int32

func (*GetTestMessageRequest) ProtoMessage

func (*GetTestMessageRequest) ProtoMessage()

func (*GetTestMessageRequest) ProtoReflect

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

func (*GetTestMessageRequest) Reset

func (x *GetTestMessageRequest) Reset()

func (*GetTestMessageRequest) String

func (x *GetTestMessageRequest) String() string

type GetTestMessageResponse

type GetTestMessageResponse struct {
	TestMessage *TestMessage `protobuf:"bytes,1,opt,name=test_message,json=testMessage,proto3" json:"test_message,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTestMessageResponse) Descriptor deprecated

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

Deprecated: Use GetTestMessageResponse.ProtoReflect.Descriptor instead.

func (*GetTestMessageResponse) GetTestMessage

func (x *GetTestMessageResponse) GetTestMessage() *TestMessage

func (*GetTestMessageResponse) ProtoMessage

func (*GetTestMessageResponse) ProtoMessage()

func (*GetTestMessageResponse) ProtoReflect

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

func (*GetTestMessageResponse) Reset

func (x *GetTestMessageResponse) Reset()

func (*GetTestMessageResponse) String

func (x *GetTestMessageResponse) String() string

type TestMessage

type TestMessage struct {
	Id      int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Message string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Time    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*TestMessage) Descriptor deprecated

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

Deprecated: Use TestMessage.ProtoReflect.Descriptor instead.

func (*TestMessage) GetId

func (x *TestMessage) GetId() int32

func (*TestMessage) GetMessage

func (x *TestMessage) GetMessage() string

func (*TestMessage) GetTime

func (x *TestMessage) GetTime() *timestamppb.Timestamp

func (*TestMessage) ProtoMessage

func (*TestMessage) ProtoMessage()

func (*TestMessage) ProtoReflect

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

func (*TestMessage) Reset

func (x *TestMessage) Reset()

func (*TestMessage) String

func (x *TestMessage) String() string

type TestServiceClient

type TestServiceClient interface {
	GetTestMessage(ctx context.Context, in *GetTestMessageRequest, opts ...grpc.CallOption) (*GetTestMessageResponse, 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 TestServiceServer

type TestServiceServer interface {
	GetTestMessage(context.Context, *GetTestMessageRequest) (*GetTestMessageResponse, 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) GetTestMessage

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.

Jump to

Keyboard shortcuts

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