Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- func TestServicePluginServer(server TestServiceServer) api.PluginServer
- type TestRequest
- func (*TestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestRequest) GetRequest() string
- func (*TestRequest) ProtoMessage()
- func (x *TestRequest) ProtoReflect() protoreflect.Message
- func (x *TestRequest) Reset()
- func (x *TestRequest) String() string
- func (m *TestRequest) Validate() error
- func (m *TestRequest) ValidateAll() error
- type TestRequestMultiError
- type TestRequestValidationError
- func (e TestRequestValidationError) Cause() error
- func (e TestRequestValidationError) Error() string
- func (e TestRequestValidationError) ErrorName() string
- func (e TestRequestValidationError) Field() string
- func (e TestRequestValidationError) Key() bool
- func (e TestRequestValidationError) Reason() string
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestResponse) GetResponse() string
- func (*TestResponse) ProtoMessage()
- func (x *TestResponse) ProtoReflect() protoreflect.Message
- func (x *TestResponse) Reset()
- func (x *TestResponse) String() string
- func (m *TestResponse) Validate() error
- func (m *TestResponse) ValidateAll() error
- type TestResponseMultiError
- type TestResponseValidationError
- func (e TestResponseValidationError) Cause() error
- func (e TestResponseValidationError) Error() string
- func (e TestResponseValidationError) ErrorName() string
- func (e TestResponseValidationError) Field() string
- func (e TestResponseValidationError) Key() bool
- func (e TestResponseValidationError) Reason() string
- type TestServiceClient
- type TestServicePluginClient
- type TestServiceServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
const ( Type = "TestService" GRPCServiceFullName = "plugin.test.v1.TestService" )
const (
TestService_Test_FullMethodName = "/plugin.test.v1.TestService/Test"
)
Variables ¶
var File_plugin_test_v1_test_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "plugin.test.v1.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Test", Handler: _TestService_Test_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/test/v1/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)
func TestServicePluginServer ¶
func TestServicePluginServer(server TestServiceServer) api.PluginServer
Types ¶
type TestRequest ¶
type TestRequest struct {
Request string `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
// contains filtered or unexported fields
}
func (*TestRequest) Descriptor
deprecated
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetRequest ¶
func (x *TestRequest) GetRequest() 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
func (*TestRequest) Validate ¶
func (m *TestRequest) Validate() error
Validate checks the field values on TestRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestRequest) ValidateAll ¶
func (m *TestRequest) ValidateAll() error
ValidateAll checks the field values on TestRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestRequestMultiError, or nil if none found.
type TestRequestMultiError ¶
type TestRequestMultiError []error
TestRequestMultiError is an error wrapping multiple validation errors returned by TestRequest.ValidateAll() if the designated constraints aren't met.
func (TestRequestMultiError) AllErrors ¶
func (m TestRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestRequestMultiError) Error ¶
func (m TestRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestRequestValidationError ¶
type TestRequestValidationError struct {
// contains filtered or unexported fields
}
TestRequestValidationError is the validation error returned by TestRequest.Validate if the designated constraints aren't met.
func (TestRequestValidationError) Cause ¶
func (e TestRequestValidationError) Cause() error
Cause function returns cause value.
func (TestRequestValidationError) Error ¶
func (e TestRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TestRequestValidationError) ErrorName ¶
func (e TestRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TestRequestValidationError) Field ¶
func (e TestRequestValidationError) Field() string
Field function returns field value.
func (TestRequestValidationError) Key ¶
func (e TestRequestValidationError) Key() bool
Key function returns key value.
func (TestRequestValidationError) Reason ¶
func (e TestRequestValidationError) Reason() string
Reason function returns reason value.
type TestResponse ¶
type TestResponse struct {
Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}
func (*TestResponse) Descriptor
deprecated
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetResponse ¶
func (x *TestResponse) GetResponse() 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
func (*TestResponse) Validate ¶
func (m *TestResponse) Validate() error
Validate checks the field values on TestResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestResponse) ValidateAll ¶
func (m *TestResponse) ValidateAll() error
ValidateAll checks the field values on TestResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestResponseMultiError, or nil if none found.
type TestResponseMultiError ¶
type TestResponseMultiError []error
TestResponseMultiError is an error wrapping multiple validation errors returned by TestResponse.ValidateAll() if the designated constraints aren't met.
func (TestResponseMultiError) AllErrors ¶
func (m TestResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestResponseMultiError) Error ¶
func (m TestResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestResponseValidationError ¶
type TestResponseValidationError struct {
// contains filtered or unexported fields
}
TestResponseValidationError is the validation error returned by TestResponse.Validate if the designated constraints aren't met.
func (TestResponseValidationError) Cause ¶
func (e TestResponseValidationError) Cause() error
Cause function returns cause value.
func (TestResponseValidationError) Error ¶
func (e TestResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TestResponseValidationError) ErrorName ¶
func (e TestResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TestResponseValidationError) Field ¶
func (e TestResponseValidationError) Field() string
Field function returns field value.
func (TestResponseValidationError) Key ¶
func (e TestResponseValidationError) Key() bool
Key function returns key value.
func (TestResponseValidationError) Reason ¶
func (e TestResponseValidationError) Reason() string
Reason function returns reason value.
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 TestServicePluginClient ¶
type TestServicePluginClient struct {
TestServiceClient
}
func (*TestServicePluginClient) GRPCServiceName ¶
func (c *TestServicePluginClient) GRPCServiceName() string
func (*TestServicePluginClient) InitClient ¶
func (c *TestServicePluginClient) InitClient(conn grpc.ClientConnInterface) any
func (*TestServicePluginClient) IsInitialized ¶
func (c *TestServicePluginClient) IsInitialized() bool
func (TestServicePluginClient) Type ¶
func (s TestServicePluginClient) Type() string
type TestServiceServer ¶
type TestServiceServer interface {
Test(context.Context, *TestRequest) (*TestResponse, 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.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
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.