Documentation ¶
Index ¶
- Variables
- func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)
- type ExecuteFunctionRequest
- func (*ExecuteFunctionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteFunctionRequest) GetArgs() []*structpb.Value
- func (x *ExecuteFunctionRequest) GetFunction() string
- func (*ExecuteFunctionRequest) ProtoMessage()
- func (x *ExecuteFunctionRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteFunctionRequest) Reset()
- func (x *ExecuteFunctionRequest) String() string
- type ExecuteFunctionResponse
- func (*ExecuteFunctionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteFunctionResponse) GetResult() *structpb.Value
- func (*ExecuteFunctionResponse) ProtoMessage()
- func (x *ExecuteFunctionResponse) ProtoReflect() protoreflect.Message
- func (x *ExecuteFunctionResponse) Reset()
- func (x *ExecuteFunctionResponse) String() string
- type ListFunctionsRequest
- type ListFunctionsResponse
- func (*ListFunctionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFunctionsResponse) GetFunctions() []string
- func (*ListFunctionsResponse) ProtoMessage()
- func (x *ListFunctionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListFunctionsResponse) Reset()
- func (x *ListFunctionsResponse) String() string
- type PluginServiceClient
- type PluginServiceServer
- type UnimplementedPluginServiceServer
- type UnsafePluginServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_plugin_v1_plugin_proto protoreflect.FileDescriptor
var PluginService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "plugin.v1.PluginService", HandlerType: (*PluginServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListFunctions", Handler: _PluginService_ListFunctions_Handler, }, { MethodName: "ExecuteFunction", Handler: _PluginService_ExecuteFunction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/v1/plugin.proto", }
PluginService_ServiceDesc is the grpc.ServiceDesc for PluginService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPluginServiceServer ¶
func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)
Types ¶
type ExecuteFunctionRequest ¶
type ExecuteFunctionRequest struct { // The name of the function to execute. Function string `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"` // The arguments to the function. Args []*structpb.Value `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*ExecuteFunctionRequest) Descriptor
deprecated
func (*ExecuteFunctionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteFunctionRequest.ProtoReflect.Descriptor instead.
func (*ExecuteFunctionRequest) GetArgs ¶
func (x *ExecuteFunctionRequest) GetArgs() []*structpb.Value
func (*ExecuteFunctionRequest) GetFunction ¶
func (x *ExecuteFunctionRequest) GetFunction() string
func (*ExecuteFunctionRequest) ProtoMessage ¶
func (*ExecuteFunctionRequest) ProtoMessage()
func (*ExecuteFunctionRequest) ProtoReflect ¶
func (x *ExecuteFunctionRequest) ProtoReflect() protoreflect.Message
func (*ExecuteFunctionRequest) Reset ¶
func (x *ExecuteFunctionRequest) Reset()
func (*ExecuteFunctionRequest) String ¶
func (x *ExecuteFunctionRequest) String() string
type ExecuteFunctionResponse ¶
type ExecuteFunctionResponse struct { // The result of the function. Result *structpb.Value `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*ExecuteFunctionResponse) Descriptor
deprecated
func (*ExecuteFunctionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteFunctionResponse.ProtoReflect.Descriptor instead.
func (*ExecuteFunctionResponse) GetResult ¶
func (x *ExecuteFunctionResponse) GetResult() *structpb.Value
func (*ExecuteFunctionResponse) ProtoMessage ¶
func (*ExecuteFunctionResponse) ProtoMessage()
func (*ExecuteFunctionResponse) ProtoReflect ¶
func (x *ExecuteFunctionResponse) ProtoReflect() protoreflect.Message
func (*ExecuteFunctionResponse) Reset ¶
func (x *ExecuteFunctionResponse) Reset()
func (*ExecuteFunctionResponse) String ¶
func (x *ExecuteFunctionResponse) String() string
type ListFunctionsRequest ¶
type ListFunctionsRequest struct {
// contains filtered or unexported fields
}
func (*ListFunctionsRequest) Descriptor
deprecated
func (*ListFunctionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFunctionsRequest.ProtoReflect.Descriptor instead.
func (*ListFunctionsRequest) ProtoMessage ¶
func (*ListFunctionsRequest) ProtoMessage()
func (*ListFunctionsRequest) ProtoReflect ¶
func (x *ListFunctionsRequest) ProtoReflect() protoreflect.Message
func (*ListFunctionsRequest) Reset ¶
func (x *ListFunctionsRequest) Reset()
func (*ListFunctionsRequest) String ¶
func (x *ListFunctionsRequest) String() string
type ListFunctionsResponse ¶
type ListFunctionsResponse struct { Functions []string `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"` // contains filtered or unexported fields }
func (*ListFunctionsResponse) Descriptor
deprecated
func (*ListFunctionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFunctionsResponse.ProtoReflect.Descriptor instead.
func (*ListFunctionsResponse) GetFunctions ¶
func (x *ListFunctionsResponse) GetFunctions() []string
func (*ListFunctionsResponse) ProtoMessage ¶
func (*ListFunctionsResponse) ProtoMessage()
func (*ListFunctionsResponse) ProtoReflect ¶
func (x *ListFunctionsResponse) ProtoReflect() protoreflect.Message
func (*ListFunctionsResponse) Reset ¶
func (x *ListFunctionsResponse) Reset()
func (*ListFunctionsResponse) String ¶
func (x *ListFunctionsResponse) String() string
type PluginServiceClient ¶
type PluginServiceClient interface { // ListFunctions returns a list of functions provided by the plugin. ListFunctions(ctx context.Context, in *ListFunctionsRequest, opts ...grpc.CallOption) (*ListFunctionsResponse, error) // ExecuteFunction executes the function with the given name and arguments. ExecuteFunction(ctx context.Context, in *ExecuteFunctionRequest, opts ...grpc.CallOption) (*ExecuteFunctionResponse, error) }
PluginServiceClient is the client API for PluginService 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 NewPluginServiceClient ¶
func NewPluginServiceClient(cc grpc.ClientConnInterface) PluginServiceClient
type PluginServiceServer ¶
type PluginServiceServer interface { // ListFunctions returns a list of functions provided by the plugin. ListFunctions(context.Context, *ListFunctionsRequest) (*ListFunctionsResponse, error) // ExecuteFunction executes the function with the given name and arguments. ExecuteFunction(context.Context, *ExecuteFunctionRequest) (*ExecuteFunctionResponse, error) // contains filtered or unexported methods }
PluginServiceServer is the server API for PluginService service. All implementations must embed UnimplementedPluginServiceServer for forward compatibility
type UnimplementedPluginServiceServer ¶
type UnimplementedPluginServiceServer struct { }
UnimplementedPluginServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPluginServiceServer) ExecuteFunction ¶
func (UnimplementedPluginServiceServer) ExecuteFunction(context.Context, *ExecuteFunctionRequest) (*ExecuteFunctionResponse, error)
func (UnimplementedPluginServiceServer) ListFunctions ¶
func (UnimplementedPluginServiceServer) ListFunctions(context.Context, *ListFunctionsRequest) (*ListFunctionsResponse, error)
type UnsafePluginServiceServer ¶
type UnsafePluginServiceServer interface {
// contains filtered or unexported methods
}
UnsafePluginServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginServiceServer will result in compilation errors.