Documentation ¶
Index ¶
- Variables
- func RegisterPluginServer(s *grpc.Server, srv PluginServer)
- type EventsRequest
- type EventsResponse
- type InteractionRequest
- func (*InteractionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionRequest) GetArgs() []string
- func (x *InteractionRequest) GetFunction() string
- func (x *InteractionRequest) GetPluginInterface() string
- func (*InteractionRequest) ProtoMessage()
- func (x *InteractionRequest) ProtoReflect() protoreflect.Message
- func (x *InteractionRequest) Reset()
- func (x *InteractionRequest) String() string
- type InteractionResponse
- func (*InteractionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionResponse) GetValue() string
- func (*InteractionResponse) ProtoMessage()
- func (x *InteractionResponse) ProtoReflect() protoreflect.Message
- func (x *InteractionResponse) Reset()
- func (x *InteractionResponse) String() string
- type PluginClient
- type PluginServer
- type UnimplementedPluginServer
- func (*UnimplementedPluginServer) Interaction(context.Context, *InteractionRequest) (*InteractionResponse, error)
- func (*UnimplementedPluginServer) OnInstall(context.Context, *EventsRequest) (*EventsResponse, error)
- func (*UnimplementedPluginServer) OnLoad(context.Context, *EventsRequest) (*EventsResponse, error)
- func (*UnimplementedPluginServer) OnStart(context.Context, *EventsRequest) (*EventsResponse, error)
- func (*UnimplementedPluginServer) OnStop(context.Context, *EventsRequest) (*EventsResponse, error)
- func (*UnimplementedPluginServer) OnUninstall(context.Context, *EventsRequest) (*EventsResponse, error)
- func (*UnimplementedPluginServer) OnUnload(context.Context, *EventsRequest) (*EventsResponse, error)
- func (*UnimplementedPluginServer) UIFramework(context.Context, *EventsRequest) (*EventsResponse, error)
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 ¶
type PluginServer interface { OnLoad(context.Context, *EventsRequest) (*EventsResponse, error) OnUnload(context.Context, *EventsRequest) (*EventsResponse, error) OnInstall(context.Context, *EventsRequest) (*EventsResponse, error) OnUninstall(context.Context, *EventsRequest) (*EventsResponse, error) OnStart(context.Context, *EventsRequest) (*EventsResponse, error) OnStop(context.Context, *EventsRequest) (*EventsResponse, error) Interaction(context.Context, *InteractionRequest) (*InteractionResponse, error) UIFramework(context.Context, *EventsRequest) (*EventsResponse, error) }
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) Interaction(context.Context, *InteractionRequest) (*InteractionResponse, error)
func (*UnimplementedPluginServer) OnInstall ¶
func (*UnimplementedPluginServer) OnInstall(context.Context, *EventsRequest) (*EventsResponse, error)
func (*UnimplementedPluginServer) OnLoad ¶
func (*UnimplementedPluginServer) OnLoad(context.Context, *EventsRequest) (*EventsResponse, error)
func (*UnimplementedPluginServer) OnStart ¶
func (*UnimplementedPluginServer) OnStart(context.Context, *EventsRequest) (*EventsResponse, error)
func (*UnimplementedPluginServer) OnStop ¶
func (*UnimplementedPluginServer) OnStop(context.Context, *EventsRequest) (*EventsResponse, error)
func (*UnimplementedPluginServer) OnUninstall ¶
func (*UnimplementedPluginServer) OnUninstall(context.Context, *EventsRequest) (*EventsResponse, error)
func (*UnimplementedPluginServer) OnUnload ¶
func (*UnimplementedPluginServer) OnUnload(context.Context, *EventsRequest) (*EventsResponse, error)
func (*UnimplementedPluginServer) UIFramework ¶
func (*UnimplementedPluginServer) UIFramework(context.Context, *EventsRequest) (*EventsResponse, error)
Click to show internal directories.
Click to hide internal directories.