proto

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Invoker_Invoke_FullMethodName = "/plugin.Invoker/Invoke"
)

Variables

View Source
var File_model_proto protoreflect.FileDescriptor
View Source
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

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.

Jump to

Keyboard shortcuts

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