legacyplugin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_private_test_legacyplugin_someplugin_proto protoreflect.FileDescriptor
View Source
var SomePlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "private.test.legacyplugin.SomePlugin",
	HandlerType: (*SomePluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PluginEcho",
			Handler:    _SomePlugin_PluginEcho_Handler,
		},
		{
			MethodName: "Configure",
			Handler:    _SomePlugin_Configure_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "private/test/legacyplugin/someplugin.proto",
}

SomePlugin_ServiceDesc is the grpc.ServiceDesc for SomePlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSomePluginServer

func RegisterSomePluginServer(s grpc.ServiceRegistrar, srv SomePluginServer)

func SomePluginPluginServer

func SomePluginPluginServer(server SomePluginServer) pluginsdk.PluginServer

Types

type EchoRequest

type EchoRequest struct {
	In string `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoRequest) Descriptor deprecated

func (*EchoRequest) Descriptor() ([]byte, []int)

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetIn

func (x *EchoRequest) GetIn() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

func (x *EchoRequest) ProtoReflect() protoreflect.Message

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoResponse

type EchoResponse struct {
	Out string `protobuf:"bytes,1,opt,name=out,proto3" json:"out,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoResponse) Descriptor deprecated

func (*EchoResponse) Descriptor() ([]byte, []int)

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetOut

func (x *EchoResponse) GetOut() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

func (x *EchoResponse) ProtoReflect() protoreflect.Message

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type SomePluginClient

type SomePluginClient interface {
	PluginEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
	Configure(ctx context.Context, in *plugin.ConfigureRequest, opts ...grpc.CallOption) (*plugin.ConfigureResponse, error)
}

SomePluginClient is the client API for SomePlugin 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 NewSomePluginClient

func NewSomePluginClient(cc grpc.ClientConnInterface) SomePluginClient

type SomePluginPluginClient

type SomePluginPluginClient struct {
	SomePluginClient
}

func (*SomePluginPluginClient) GRPCServiceName

func (c *SomePluginPluginClient) GRPCServiceName() string

func (*SomePluginPluginClient) InitClient

func (c *SomePluginPluginClient) InitClient(conn grpc.ClientConnInterface) interface{}

func (*SomePluginPluginClient) IsInitialized

func (c *SomePluginPluginClient) IsInitialized() bool

func (SomePluginPluginClient) Type

func (s SomePluginPluginClient) Type() string

type SomePluginServer

type SomePluginServer interface {
	PluginEcho(context.Context, *EchoRequest) (*EchoResponse, error)
	Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
	// contains filtered or unexported methods
}

SomePluginServer is the server API for SomePlugin service. All implementations must embed UnimplementedSomePluginServer for forward compatibility

type UnimplementedSomePluginServer

type UnimplementedSomePluginServer struct {
}

UnimplementedSomePluginServer must be embedded to have forward compatible implementations.

func (UnimplementedSomePluginServer) Configure

func (UnimplementedSomePluginServer) PluginEcho

type UnsafeSomePluginServer

type UnsafeSomePluginServer interface {
	// contains filtered or unexported methods
}

UnsafeSomePluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SomePluginServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL