Documentation
¶
Index ¶
- Variables
- func RegisterOrchestratorServer(s *grpc.Server, srv OrchestratorServer)
- type OrchestratorClient
- type OrchestratorServer
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetClass() int64
- func (x *Response) GetName() string
- func (x *Response) GetRoll() int64
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type UnimplementedOrchestratorServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_orchestrator_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOrchestratorServer ¶
func RegisterOrchestratorServer(s *grpc.Server, srv OrchestratorServer)
Types ¶
type OrchestratorClient ¶
type OrchestratorClient interface { GetUserByName(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) GetUser(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
OrchestratorClient is the client API for Orchestrator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOrchestratorClient ¶
func NewOrchestratorClient(cc grpc.ClientConnInterface) OrchestratorClient
type OrchestratorServer ¶
type OrchestratorServer interface { GetUserByName(context.Context, *Request) (*Response, error) GetUser(context.Context, *Request) (*Response, error) }
OrchestratorServer is the server API for Orchestrator service.
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Class int64 `protobuf:"varint,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 (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedOrchestratorServer ¶
type UnimplementedOrchestratorServer struct { }
UnimplementedOrchestratorServer can be embedded to have forward compatible implementations.
func (*UnimplementedOrchestratorServer) GetUserByName ¶
Click to show internal directories.
Click to hide internal directories.