proto

package
v0.0.0-...-075d4b0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_proto protoreflect.FileDescriptor

Functions

func RegisterPluginServer

func RegisterPluginServer(s *grpc.Server, srv PluginServer)

Types

type EventsRequest

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

func (*EventsRequest) Descriptor deprecated

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

Deprecated: Use EventsRequest.ProtoReflect.Descriptor instead.

func (*EventsRequest) GetPluginInterface

func (x *EventsRequest) GetPluginInterface() string

func (*EventsRequest) ProtoMessage

func (*EventsRequest) ProtoMessage()

func (*EventsRequest) ProtoReflect

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

func (*EventsRequest) Reset

func (x *EventsRequest) Reset()

func (*EventsRequest) String

func (x *EventsRequest) String() string

type EventsResponse

type EventsResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*EventsResponse) Descriptor deprecated

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

Deprecated: Use EventsResponse.ProtoReflect.Descriptor instead.

func (*EventsResponse) GetValue

func (x *EventsResponse) GetValue() []byte

func (*EventsResponse) ProtoMessage

func (*EventsResponse) ProtoMessage()

func (*EventsResponse) ProtoReflect

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

func (*EventsResponse) Reset

func (x *EventsResponse) Reset()

func (*EventsResponse) String

func (x *EventsResponse) String() string

type InteractionRequest

type InteractionRequest struct {
	PluginInterface string   `protobuf:"bytes,1,opt,name=pluginInterface,proto3" json:"pluginInterface,omitempty"`
	Function        string   `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
	Args            []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*InteractionRequest) Descriptor deprecated

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

Deprecated: Use InteractionRequest.ProtoReflect.Descriptor instead.

func (*InteractionRequest) GetArgs

func (x *InteractionRequest) GetArgs() []string

func (*InteractionRequest) GetFunction

func (x *InteractionRequest) GetFunction() string

func (*InteractionRequest) GetPluginInterface

func (x *InteractionRequest) GetPluginInterface() string

func (*InteractionRequest) ProtoMessage

func (*InteractionRequest) ProtoMessage()

func (*InteractionRequest) ProtoReflect

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

func (*InteractionRequest) Reset

func (x *InteractionRequest) Reset()

func (*InteractionRequest) String

func (x *InteractionRequest) String() string

type InteractionResponse

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

func (*InteractionResponse) Descriptor deprecated

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

Deprecated: Use InteractionResponse.ProtoReflect.Descriptor instead.

func (*InteractionResponse) GetValue

func (x *InteractionResponse) GetValue() string

func (*InteractionResponse) ProtoMessage

func (*InteractionResponse) ProtoMessage()

func (*InteractionResponse) ProtoReflect

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

func (*InteractionResponse) Reset

func (x *InteractionResponse) Reset()

func (*InteractionResponse) String

func (x *InteractionResponse) String() string

type PluginClient

type PluginClient interface {
	OnLoad(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
	OnUnload(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
	OnInstall(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
	OnUninstall(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
	OnStart(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
	OnStop(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
	Interaction(ctx context.Context, in *InteractionRequest, opts ...grpc.CallOption) (*InteractionResponse, error)
	UIFramework(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
}

PluginClient is the client API for Plugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPluginClient

func NewPluginClient(cc grpc.ClientConnInterface) PluginClient

type PluginServer

PluginServer is the server API for Plugin service.

type UnimplementedPluginServer

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedPluginServer) Interaction

func (*UnimplementedPluginServer) OnInstall

func (*UnimplementedPluginServer) OnLoad

func (*UnimplementedPluginServer) OnStart

func (*UnimplementedPluginServer) OnStop

func (*UnimplementedPluginServer) OnUninstall

func (*UnimplementedPluginServer) OnUnload

func (*UnimplementedPluginServer) UIFramework

Jump to

Keyboard shortcuts

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