Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInvokerServer(s grpc.ServiceRegistrar, srv InvokerServer)
- type InvokeRequest
- func (*InvokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeRequest) GetArgs() []byte
- func (x *InvokeRequest) GetFuncName() string
- func (*InvokeRequest) ProtoMessage()
- func (x *InvokeRequest) ProtoReflect() protoreflect.Message
- func (x *InvokeRequest) Reset()
- func (x *InvokeRequest) String() string
- type InvokeResponse
- type InvokerClient
- type InvokerServer
- type UnimplementedInvokerServer
- type UnsafeInvokerServer
Constants ¶
const (
Invoker_Invoke_FullMethodName = "/plugin.Invoker/Invoke"
)
Variables ¶
var File_model_proto protoreflect.FileDescriptor
var Invoker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "plugin.Invoker", HandlerType: (*InvokerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Invoke", Handler: _Invoker_Invoke_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "model.proto", }
Invoker_ServiceDesc is the grpc.ServiceDesc for Invoker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInvokerServer ¶
func RegisterInvokerServer(s grpc.ServiceRegistrar, srv InvokerServer)
Types ¶
type InvokeRequest ¶
type InvokeRequest struct {
FuncName string `protobuf:"bytes,1,opt,name=funcName,proto3" json:"funcName,omitempty"`
Args []byte `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
// contains filtered or unexported fields
}
func (*InvokeRequest) Descriptor
deprecated
func (*InvokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.
func (*InvokeRequest) GetArgs ¶
func (x *InvokeRequest) GetArgs() []byte
func (*InvokeRequest) GetFuncName ¶
func (x *InvokeRequest) GetFuncName() string
func (*InvokeRequest) ProtoMessage ¶
func (*InvokeRequest) ProtoMessage()
func (*InvokeRequest) ProtoReflect ¶
func (x *InvokeRequest) ProtoReflect() protoreflect.Message
func (*InvokeRequest) Reset ¶
func (x *InvokeRequest) Reset()
func (*InvokeRequest) String ¶
func (x *InvokeRequest) String() string
type InvokeResponse ¶
type InvokeResponse struct {
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*InvokeResponse) Descriptor
deprecated
func (*InvokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.
func (*InvokeResponse) GetValue ¶
func (x *InvokeResponse) GetValue() []byte
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) ProtoReflect ¶
func (x *InvokeResponse) ProtoReflect() protoreflect.Message
func (*InvokeResponse) Reset ¶
func (x *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (x *InvokeResponse) String() string
type InvokerClient ¶
type InvokerClient interface {
Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error)
}
InvokerClient is the client API for Invoker 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 NewInvokerClient ¶
func NewInvokerClient(cc grpc.ClientConnInterface) InvokerClient
type InvokerServer ¶
type InvokerServer interface {
Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
// contains filtered or unexported methods
}
InvokerServer is the server API for Invoker service. All implementations must embed UnimplementedInvokerServer for forward compatibility.
type UnimplementedInvokerServer ¶
type UnimplementedInvokerServer struct{}
UnimplementedInvokerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedInvokerServer) Invoke ¶
func (UnimplementedInvokerServer) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
type UnsafeInvokerServer ¶
type UnsafeInvokerServer interface {
// contains filtered or unexported methods
}
UnsafeInvokerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InvokerServer will result in compilation errors.