Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_logic_proto_real_orchestrator_proto protoreflect.FileDescriptor
var RealOrchestrator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "real_orchestrator_proto.real_orchestrator", HandlerType: (*RealOrchestratorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserByName", Handler: _RealOrchestrator_GetUserByName_Handler, }, { MethodName: "GetUser", Handler: _RealOrchestrator_GetUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "logic/proto/real_orchestrator.proto", }
RealOrchestrator_ServiceDesc is the grpc.ServiceDesc for RealOrchestrator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRealOrchestratorServer ¶
func RegisterRealOrchestratorServer(s grpc.ServiceRegistrar, srv RealOrchestratorServer)
Types ¶
type NameRequest ¶
type NameRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*NameRequest) Descriptor
deprecated
func (*NameRequest) Descriptor() ([]byte, []int)
Deprecated: Use NameRequest.ProtoReflect.Descriptor instead.
func (*NameRequest) GetName ¶
func (x *NameRequest) GetName() string
func (*NameRequest) ProtoMessage ¶
func (*NameRequest) ProtoMessage()
func (*NameRequest) ProtoReflect ¶
func (x *NameRequest) ProtoReflect() protoreflect.Message
func (*NameRequest) Reset ¶
func (x *NameRequest) Reset()
func (*NameRequest) String ¶
func (x *NameRequest) String() string
type RealOrchestratorClient ¶
type RealOrchestratorClient interface { GetUserByName(ctx context.Context, in *NameRequest, opts ...grpc.CallOption) (*User, error) GetUser(ctx context.Context, in *NameRequest, opts ...grpc.CallOption) (*User, error) }
RealOrchestratorClient is the client API for RealOrchestrator 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 NewRealOrchestratorClient ¶
func NewRealOrchestratorClient(cc grpc.ClientConnInterface) RealOrchestratorClient
type RealOrchestratorServer ¶
type RealOrchestratorServer interface { GetUserByName(context.Context, *NameRequest) (*User, error) GetUser(context.Context, *NameRequest) (*User, error) // contains filtered or unexported methods }
RealOrchestratorServer is the server API for RealOrchestrator service. All implementations must embed UnimplementedRealOrchestratorServer for forward compatibility
type UnimplementedRealOrchestratorServer ¶
type UnimplementedRealOrchestratorServer struct { }
UnimplementedRealOrchestratorServer must be embedded to have forward compatible implementations.
func (UnimplementedRealOrchestratorServer) GetUser ¶
func (UnimplementedRealOrchestratorServer) GetUser(context.Context, *NameRequest) (*User, error)
func (UnimplementedRealOrchestratorServer) GetUserByName ¶
func (UnimplementedRealOrchestratorServer) GetUserByName(context.Context, *NameRequest) (*User, error)
type UnsafeRealOrchestratorServer ¶
type UnsafeRealOrchestratorServer interface {
// contains filtered or unexported methods
}
UnsafeRealOrchestratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RealOrchestratorServer will result in compilation errors.
type User ¶
type User struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"` Roll int64 `protobuf:"varint,3,opt,name=roll,proto3" json:"roll,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message