plugin

package
v1.9.5-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_plugin_proto protoreflect.FileDescriptor
View Source
var Node_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugin.Node",
	HandlerType: (*NodeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Start",
			Handler:    _Node_Start_Handler,
		},
		{
			MethodName: "ExitCode",
			Handler:    _Node_ExitCode_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _Node_Stop_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin/plugin.proto",
}

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

Functions

func RegisterNodeServer

func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer)

Types

type ExitCodeResponse

type ExitCodeResponse struct {
	ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// contains filtered or unexported fields
}

func (*ExitCodeResponse) Descriptor deprecated

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

Deprecated: Use ExitCodeResponse.ProtoReflect.Descriptor instead.

func (*ExitCodeResponse) GetExitCode

func (x *ExitCodeResponse) GetExitCode() int32

func (*ExitCodeResponse) ProtoMessage

func (*ExitCodeResponse) ProtoMessage()

func (*ExitCodeResponse) ProtoReflect

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

func (*ExitCodeResponse) Reset

func (x *ExitCodeResponse) Reset()

func (*ExitCodeResponse) String

func (x *ExitCodeResponse) String() string

type NodeClient

type NodeClient interface {
	Start(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ExitCode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ExitCodeResponse, error)
	Stop(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

NodeClient is the client API for Node 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 NewNodeClient

func NewNodeClient(cc grpc.ClientConnInterface) NodeClient

type NodeServer

type NodeServer interface {
	Start(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	ExitCode(context.Context, *emptypb.Empty) (*ExitCodeResponse, error)
	Stop(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

NodeServer is the server API for Node service. All implementations must embed UnimplementedNodeServer for forward compatibility

type UnimplementedNodeServer

type UnimplementedNodeServer struct {
}

UnimplementedNodeServer must be embedded to have forward compatible implementations.

func (UnimplementedNodeServer) ExitCode

func (UnimplementedNodeServer) Start

func (UnimplementedNodeServer) Stop

type UnsafeNodeServer

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

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

Jump to

Keyboard shortcuts

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