Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type GetSomethingRequest
- func (*GetSomethingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSomethingRequest) GetSomethingId() string
- func (*GetSomethingRequest) ProtoMessage()
- func (x *GetSomethingRequest) ProtoReflect() protoreflect.Message
- func (x *GetSomethingRequest) Reset()
- func (x *GetSomethingRequest) String() string
- type GetSomethingResponse
- func (*GetSomethingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSomethingResponse) GetSomethingContents() string
- func (*GetSomethingResponse) ProtoMessage()
- func (x *GetSomethingResponse) ProtoReflect() protoreflect.Message
- func (x *GetSomethingResponse) Reset()
- func (x *GetSomethingResponse) String() string
- type TestServiceClient
- type TestServiceServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
const (
TestService_GetSomething_FullMethodName = "/testproto.TestService/GetSomething"
)
Variables ¶
var File_test_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "testproto.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSomething", Handler: _TestService_GetSomething_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 GetSomethingRequest ¶
type GetSomethingRequest struct { SomethingId string `protobuf:"bytes,1,opt,name=something_id,json=somethingId,proto3" json:"something_id,omitempty"` // contains filtered or unexported fields }
func (*GetSomethingRequest) Descriptor
deprecated
func (*GetSomethingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSomethingRequest.ProtoReflect.Descriptor instead.
func (*GetSomethingRequest) GetSomethingId ¶
func (x *GetSomethingRequest) GetSomethingId() string
func (*GetSomethingRequest) ProtoMessage ¶
func (*GetSomethingRequest) ProtoMessage()
func (*GetSomethingRequest) ProtoReflect ¶
func (x *GetSomethingRequest) ProtoReflect() protoreflect.Message
func (*GetSomethingRequest) Reset ¶
func (x *GetSomethingRequest) Reset()
func (*GetSomethingRequest) String ¶
func (x *GetSomethingRequest) String() string
type GetSomethingResponse ¶
type GetSomethingResponse struct { SomethingContents string `protobuf:"bytes,1,opt,name=something_contents,json=somethingContents,proto3" json:"something_contents,omitempty"` // contains filtered or unexported fields }
func (*GetSomethingResponse) Descriptor
deprecated
func (*GetSomethingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSomethingResponse.ProtoReflect.Descriptor instead.
func (*GetSomethingResponse) GetSomethingContents ¶
func (x *GetSomethingResponse) GetSomethingContents() string
func (*GetSomethingResponse) ProtoMessage ¶
func (*GetSomethingResponse) ProtoMessage()
func (*GetSomethingResponse) ProtoReflect ¶
func (x *GetSomethingResponse) ProtoReflect() protoreflect.Message
func (*GetSomethingResponse) Reset ¶
func (x *GetSomethingResponse) Reset()
func (*GetSomethingResponse) String ¶
func (x *GetSomethingResponse) String() string
type TestServiceClient ¶
type TestServiceClient interface {
GetSomething(ctx context.Context, in *GetSomethingRequest, opts ...grpc.CallOption) (*GetSomethingResponse, 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 TestServiceServer ¶
type TestServiceServer interface { GetSomething(context.Context, *GetSomethingRequest) (*GetSomethingResponse, 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) GetSomething ¶
func (UnimplementedTestServiceServer) GetSomething(context.Context, *GetSomethingRequest) (*GetSomethingResponse, 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.