Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceHTTPServer(s *http.Server, srv TestServiceHTTPServer)
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type TestRequest
- type TestResponse
- type TestServiceClient
- type TestServiceHTTPClient
- type TestServiceHTTPClientImpl
- type TestServiceHTTPServer
- type TestServiceServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
const OperationTestServiceTest = "/api.TestService/Test"
Variables ¶
var File_test_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Test", Handler: _TestService_Test_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 RegisterTestServiceHTTPServer ¶
func RegisterTestServiceHTTPServer(s *http.Server, srv TestServiceHTTPServer)
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type TestRequest ¶
type TestRequest struct { Test string `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"` // contains filtered or unexported fields }
func (*TestRequest) Descriptor
deprecated
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetTest ¶
func (x *TestRequest) GetTest() string
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) ProtoReflect ¶
func (x *TestRequest) ProtoReflect() protoreflect.Message
func (*TestRequest) Reset ¶
func (x *TestRequest) Reset()
func (*TestRequest) String ¶
func (x *TestRequest) String() string
type TestResponse ¶
type TestResponse struct { Test string `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"` // contains filtered or unexported fields }
func (*TestResponse) Descriptor
deprecated
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetTest ¶
func (x *TestResponse) GetTest() string
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) ProtoReflect ¶
func (x *TestResponse) ProtoReflect() protoreflect.Message
func (*TestResponse) Reset ¶
func (x *TestResponse) Reset()
func (*TestResponse) String ¶
func (x *TestResponse) String() string
type TestServiceClient ¶
type TestServiceClient interface {
Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, 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 TestServiceHTTPClient ¶
type TestServiceHTTPClient interface {
Test(ctx context.Context, req *TestRequest, opts ...http.CallOption) (rsp *TestResponse, err error)
}
func NewTestServiceHTTPClient ¶
func NewTestServiceHTTPClient(client *http.Client) TestServiceHTTPClient
type TestServiceHTTPClientImpl ¶
type TestServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*TestServiceHTTPClientImpl) Test ¶
func (c *TestServiceHTTPClientImpl) Test(ctx context.Context, in *TestRequest, opts ...http.CallOption) (*TestResponse, error)
type TestServiceHTTPServer ¶
type TestServiceHTTPServer interface {
Test(context.Context, *TestRequest) (*TestResponse, error)
}
type TestServiceServer ¶
type TestServiceServer interface {
Test(context.Context, *TestRequest) (*TestResponse, error)
}
TestServiceServer is the server API for TestService service. All implementations should embed UnimplementedTestServiceServer for forward compatibility
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTestServiceServer) Test ¶
func (UnimplementedTestServiceServer) Test(context.Context, *TestRequest) (*TestResponse, 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.