testv1

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type                = "TestService"
	GRPCServiceFullName = "plugin.test.v1.TestService"
)
View Source
const (
	TestService_Test_FullMethodName = "/plugin.test.v1.TestService/Test"
)

Variables

View Source
var File_plugin_test_v1_test_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (TestRequestValidationError) Error

Error satisfies the builtin error interface

func (TestRequestValidationError) ErrorName

func (e TestRequestValidationError) ErrorName() string

ErrorName returns error name.

func (TestRequestValidationError) Field

Field function returns field value.

func (TestRequestValidationError) Key

Key function returns key value.

func (TestRequestValidationError) Reason

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

Cause function returns cause value.

func (TestResponseValidationError) Error

Error satisfies the builtin error interface

func (TestResponseValidationError) ErrorName

func (e TestResponseValidationError) ErrorName() string

ErrorName returns error name.

func (TestResponseValidationError) Field

Field function returns field value.

func (TestResponseValidationError) Key

Key function returns key value.

func (TestResponseValidationError) Reason

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.

type TestServicePluginClient

type TestServicePluginClient struct {
	TestServiceClient
}

func (*TestServicePluginClient) GRPCServiceName

func (c *TestServicePluginClient) GRPCServiceName() string

func (*TestServicePluginClient) InitClient

func (*TestServicePluginClient) IsInitialized

func (c *TestServicePluginClient) IsInitialized() bool

func (TestServicePluginClient) Type

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

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