Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterJSEvalServer(s grpc.ServiceRegistrar, srv JSEvalServer)
- type EvalIn
- func (*EvalIn) Descriptor() ([]byte, []int)deprecated
- func (x *EvalIn) GetFunName() string
- func (x *EvalIn) GetInit() string
- func (x *EvalIn) GetInputs() *anypb.Any
- func (*EvalIn) ProtoMessage()
- func (x *EvalIn) ProtoReflect() protoreflect.Message
- func (x *EvalIn) Reset()
- func (x *EvalIn) String() string
- type EvalOut
- type JSEvalClient
- type JSEvalServer
- type UnimplementedJSEvalServer
- type UnsafeJSEvalServer
Constants ¶
const (
JSEval_Eval_FullMethodName = "/JSEval/Eval"
)
Variables ¶
var File_jseval_proto protoreflect.FileDescriptor
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) GetFunName ¶
func (*EvalIn) ProtoMessage ¶
func (*EvalIn) ProtoMessage()
func (*EvalIn) ProtoReflect ¶
func (x *EvalIn) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*EvalOut) ProtoMessage()
func (*EvalOut) ProtoReflect ¶
func (x *EvalOut) ProtoReflect() protoreflect.Message
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.
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.