Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- func TestServicePluginServer(server TestServiceServer) api.PluginServer
- type TestRequest
- type TestResponse
- 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
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
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.