Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRuntimeServer(s grpc.ServiceRegistrar, srv RuntimeServer)
- type InitializeRequest
- func (*InitializeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitializeRequest) GetAddr() string
- func (x *InitializeRequest) GetProtocolVersion() uint32
- func (*InitializeRequest) ProtoMessage()
- func (x *InitializeRequest) ProtoReflect() protoreflect.Message
- func (x *InitializeRequest) Reset()
- func (x *InitializeRequest) String() string
- type RuntimeClient
- type RuntimeServer
- type UnimplementedRuntimeServer
- type UnsafeRuntimeServer
Constants ¶
const (
Runtime_Initialize_FullMethodName = "/vm.runtime.Runtime/Initialize"
)
Variables ¶
var File_vm_runtime_runtime_proto protoreflect.FileDescriptor
var Runtime_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vm.runtime.Runtime", HandlerType: (*RuntimeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Initialize", Handler: _Runtime_Initialize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "vm/runtime/runtime.proto", }
Runtime_ServiceDesc is the grpc.ServiceDesc for Runtime service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRuntimeServer ¶
func RegisterRuntimeServer(s grpc.ServiceRegistrar, srv RuntimeServer)
Types ¶
type InitializeRequest ¶
type InitializeRequest struct { // ProtocolVersion is used to identify incompatibilities with Lux Node and a VM. ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` // Address of the gRPC server endpoint serving the handshake logic. // Example: 127.0.0.1:50001 Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
func (*InitializeRequest) Descriptor
deprecated
func (*InitializeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitializeRequest.ProtoReflect.Descriptor instead.
func (*InitializeRequest) GetAddr ¶
func (x *InitializeRequest) GetAddr() string
func (*InitializeRequest) GetProtocolVersion ¶
func (x *InitializeRequest) GetProtocolVersion() uint32
func (*InitializeRequest) ProtoMessage ¶
func (*InitializeRequest) ProtoMessage()
func (*InitializeRequest) ProtoReflect ¶
func (x *InitializeRequest) ProtoReflect() protoreflect.Message
func (*InitializeRequest) Reset ¶
func (x *InitializeRequest) Reset()
func (*InitializeRequest) String ¶
func (x *InitializeRequest) String() string
type RuntimeClient ¶
type RuntimeClient interface { // Initialize a VM Runtime. Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
RuntimeClient is the client API for Runtime 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 NewRuntimeClient ¶
func NewRuntimeClient(cc grpc.ClientConnInterface) RuntimeClient
type RuntimeServer ¶
type RuntimeServer interface { // Initialize a VM Runtime. Initialize(context.Context, *InitializeRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
RuntimeServer is the server API for Runtime service. All implementations must embed UnimplementedRuntimeServer for forward compatibility
type UnimplementedRuntimeServer ¶
type UnimplementedRuntimeServer struct { }
UnimplementedRuntimeServer must be embedded to have forward compatible implementations.
func (UnimplementedRuntimeServer) Initialize ¶
func (UnimplementedRuntimeServer) Initialize(context.Context, *InitializeRequest) (*emptypb.Empty, error)
type UnsafeRuntimeServer ¶
type UnsafeRuntimeServer interface {
// contains filtered or unexported methods
}
UnsafeRuntimeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuntimeServer will result in compilation errors.