jseval

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSEval_Eval_FullMethodName = "/JSEval/Eval"
)

Variables

View Source
var File_jseval_proto protoreflect.FileDescriptor
View Source
var JSEval_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "JSEval",
	HandlerType: (*JSEvalServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Eval",
			Handler:    _JSEval_Eval_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "jseval.proto",
}

JSEval_ServiceDesc is the grpc.ServiceDesc for JSEval service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterJSEvalServer

func RegisterJSEvalServer(s grpc.ServiceRegistrar, srv JSEvalServer)

Types

type EvalIn

type EvalIn struct {
	Init    string     `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"`
	FunName string     `protobuf:"bytes,4,opt,name=funName,proto3" json:"funName,omitempty"`
	Inputs  *anypb.Any `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"`
	// contains filtered or unexported fields
}

func (*EvalIn) Descriptor deprecated

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

Deprecated: Use EvalIn.ProtoReflect.Descriptor instead.

func (*EvalIn) GetFunName

func (x *EvalIn) GetFunName() string

func (*EvalIn) GetInit

func (x *EvalIn) GetInit() string

func (*EvalIn) GetInputs

func (x *EvalIn) GetInputs() *anypb.Any

func (*EvalIn) ProtoMessage

func (*EvalIn) ProtoMessage()

func (*EvalIn) ProtoReflect

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

func (*EvalIn) Reset

func (x *EvalIn) Reset()

func (*EvalIn) String

func (x *EvalIn) String() string

type EvalOut

type EvalOut struct {
	Output *anypb.Any `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*EvalOut) Descriptor deprecated

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

Deprecated: Use EvalOut.ProtoReflect.Descriptor instead.

func (*EvalOut) GetOutput

func (x *EvalOut) GetOutput() *anypb.Any

func (*EvalOut) ProtoMessage

func (*EvalOut) ProtoMessage()

func (*EvalOut) ProtoReflect

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

func (*EvalOut) Reset

func (x *EvalOut) Reset()

func (*EvalOut) String

func (x *EvalOut) String() string

type JSEvalClient

type JSEvalClient interface {
	Eval(ctx context.Context, in *EvalIn, opts ...grpc.CallOption) (*EvalOut, error)
}

JSEvalClient is the client API for JSEval 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 NewJSEvalClient

func NewJSEvalClient(cc grpc.ClientConnInterface) JSEvalClient

type JSEvalServer

type JSEvalServer interface {
	Eval(context.Context, *EvalIn) (*EvalOut, error)
	// contains filtered or unexported methods
}

JSEvalServer is the server API for JSEval service. All implementations must embed UnimplementedJSEvalServer for forward compatibility

type UnimplementedJSEvalServer

type UnimplementedJSEvalServer struct {
}

UnimplementedJSEvalServer must be embedded to have forward compatible implementations.

func (UnimplementedJSEvalServer) Eval

type UnsafeJSEvalServer

type UnsafeJSEvalServer interface {
	// contains filtered or unexported methods
}

UnsafeJSEvalServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JSEvalServer will result in compilation errors.

Jump to

Keyboard shortcuts

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