Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRuntimeServiceServer(s grpc.ServiceRegistrar, srv RuntimeServiceServer)
- type CallRequest
- func (*CallRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CallRequest) GetMethod() string
- func (x *CallRequest) GetPayload() []byte
- func (*CallRequest) ProtoMessage()
- func (x *CallRequest) ProtoReflect() protoreflect.Message
- func (x *CallRequest) Reset()
- func (x *CallRequest) String() string
- type CallResponse
- type RuntimeServiceClient
- type RuntimeServiceServer
- type UnimplementedRuntimeServiceServer
- type UnsafeRuntimeServiceServer
Constants ¶
const (
RuntimeService_Call_FullMethodName = "/memoh.runtime.v1.RuntimeService/Call"
)
Variables ¶
var File_internal_rpc_runtimepb_runtime_proto protoreflect.FileDescriptor
var RuntimeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "memoh.runtime.v1.RuntimeService", HandlerType: (*RuntimeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Call", Handler: _RuntimeService_Call_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/rpc/runtimepb/runtime.proto", }
RuntimeService_ServiceDesc is the grpc.ServiceDesc for RuntimeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRuntimeServiceServer ¶
func RegisterRuntimeServiceServer(s grpc.ServiceRegistrar, srv RuntimeServiceServer)
Types ¶
type CallRequest ¶
type CallRequest struct {
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
func (*CallRequest) Descriptor
deprecated
func (*CallRequest) Descriptor() ([]byte, []int)
Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.
func (*CallRequest) GetMethod ¶
func (x *CallRequest) GetMethod() string
func (*CallRequest) GetPayload ¶
func (x *CallRequest) GetPayload() []byte
func (*CallRequest) ProtoMessage ¶
func (*CallRequest) ProtoMessage()
func (*CallRequest) ProtoReflect ¶
func (x *CallRequest) ProtoReflect() protoreflect.Message
func (*CallRequest) Reset ¶
func (x *CallRequest) Reset()
func (*CallRequest) String ¶
func (x *CallRequest) String() string
type CallResponse ¶
type CallResponse struct {
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
func (*CallResponse) Descriptor
deprecated
func (*CallResponse) Descriptor() ([]byte, []int)
Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.
func (*CallResponse) GetPayload ¶
func (x *CallResponse) GetPayload() []byte
func (*CallResponse) ProtoMessage ¶
func (*CallResponse) ProtoMessage()
func (*CallResponse) ProtoReflect ¶
func (x *CallResponse) ProtoReflect() protoreflect.Message
func (*CallResponse) Reset ¶
func (x *CallResponse) Reset()
func (*CallResponse) String ¶
func (x *CallResponse) String() string
type RuntimeServiceClient ¶
type RuntimeServiceClient interface {
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
}
RuntimeServiceClient is the client API for RuntimeService 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.
RuntimeService is the narrow control plane shared by the Server and Channel processes. Method names are stable protocol identifiers; payloads are JSON encodings of package-owned DTOs, never database or Fx types.
func NewRuntimeServiceClient ¶
func NewRuntimeServiceClient(cc grpc.ClientConnInterface) RuntimeServiceClient
type RuntimeServiceServer ¶
type RuntimeServiceServer interface {
Call(context.Context, *CallRequest) (*CallResponse, error)
// contains filtered or unexported methods
}
RuntimeServiceServer is the server API for RuntimeService service. All implementations must embed UnimplementedRuntimeServiceServer for forward compatibility.
RuntimeService is the narrow control plane shared by the Server and Channel processes. Method names are stable protocol identifiers; payloads are JSON encodings of package-owned DTOs, never database or Fx types.
type UnimplementedRuntimeServiceServer ¶
type UnimplementedRuntimeServiceServer struct{}
UnimplementedRuntimeServiceServer 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 (UnimplementedRuntimeServiceServer) Call ¶
func (UnimplementedRuntimeServiceServer) Call(context.Context, *CallRequest) (*CallResponse, error)
type UnsafeRuntimeServiceServer ¶
type UnsafeRuntimeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRuntimeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuntimeServiceServer will result in compilation errors.