Documentation ¶
Index ¶
- Variables
- func RegisterSchedulerServer(s *grpc.Server, srv SchedulerServer)
- type GetJobReq
- type GetJobResp
- type HeartBeatReq
- func (*HeartBeatReq) Descriptor() ([]byte, []int)deprecated
- func (x *HeartBeatReq) GetExecutorId() string
- func (x *HeartBeatReq) GetExecutorInfo() *Property
- func (*HeartBeatReq) ProtoMessage()
- func (x *HeartBeatReq) ProtoReflect() protoreflect.Message
- func (x *HeartBeatReq) Reset()
- func (x *HeartBeatReq) String() string
- type HeartBeatResp
- type Property
- type SchedulerClient
- type SchedulerServer
- type UnimplementedSchedulerServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pkg_proto_scheduler_scheduler_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSchedulerServer ¶
func RegisterSchedulerServer(s *grpc.Server, srv SchedulerServer)
Types ¶
type GetJobReq ¶
type GetJobReq struct { ExecutorId string `protobuf:"bytes,1,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` // contains filtered or unexported fields }
func (*GetJobReq) Descriptor
deprecated
func (*GetJobReq) GetExecutorId ¶
func (*GetJobReq) ProtoMessage ¶
func (*GetJobReq) ProtoMessage()
func (*GetJobReq) ProtoReflect ¶
func (x *GetJobReq) ProtoReflect() protoreflect.Message
type GetJobResp ¶
type GetJobResp struct { Job *v2.Action `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // contains filtered or unexported fields }
func (*GetJobResp) Descriptor
deprecated
func (*GetJobResp) Descriptor() ([]byte, []int)
Deprecated: Use GetJobResp.ProtoReflect.Descriptor instead.
func (*GetJobResp) GetJob ¶
func (x *GetJobResp) GetJob() *v2.Action
func (*GetJobResp) ProtoMessage ¶
func (*GetJobResp) ProtoMessage()
func (*GetJobResp) ProtoReflect ¶
func (x *GetJobResp) ProtoReflect() protoreflect.Message
func (*GetJobResp) Reset ¶
func (x *GetJobResp) Reset()
func (*GetJobResp) String ¶
func (x *GetJobResp) String() string
type HeartBeatReq ¶
type HeartBeatReq struct { ExecutorInfo *Property `protobuf:"bytes,1,opt,name=executor_info,json=executorInfo,proto3" json:"executor_info,omitempty"` ExecutorId string `protobuf:"bytes,2,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` // contains filtered or unexported fields }
func (*HeartBeatReq) Descriptor
deprecated
func (*HeartBeatReq) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeatReq.ProtoReflect.Descriptor instead.
func (*HeartBeatReq) GetExecutorId ¶
func (x *HeartBeatReq) GetExecutorId() string
func (*HeartBeatReq) GetExecutorInfo ¶
func (x *HeartBeatReq) GetExecutorInfo() *Property
func (*HeartBeatReq) ProtoMessage ¶
func (*HeartBeatReq) ProtoMessage()
func (*HeartBeatReq) ProtoReflect ¶
func (x *HeartBeatReq) ProtoReflect() protoreflect.Message
func (*HeartBeatReq) Reset ¶
func (x *HeartBeatReq) Reset()
func (*HeartBeatReq) String ¶
func (x *HeartBeatReq) String() string
type HeartBeatResp ¶
type HeartBeatResp struct { Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HeartBeatResp) Descriptor
deprecated
func (*HeartBeatResp) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeatResp.ProtoReflect.Descriptor instead.
func (*HeartBeatResp) GetStatus ¶
func (x *HeartBeatResp) GetStatus() *status.Status
func (*HeartBeatResp) ProtoMessage ¶
func (*HeartBeatResp) ProtoMessage()
func (*HeartBeatResp) ProtoReflect ¶
func (x *HeartBeatResp) ProtoReflect() protoreflect.Message
func (*HeartBeatResp) Reset ¶
func (x *HeartBeatResp) Reset()
func (*HeartBeatResp) String ¶
func (x *HeartBeatResp) String() string
type Property ¶
type Property struct { Cpu int32 `protobuf:"varint,1,opt,name=Cpu,proto3" json:"Cpu,omitempty"` Memory int64 `protobuf:"varint,2,opt,name=Memory,proto3" json:"Memory,omitempty"` // contains filtered or unexported fields }
func (*Property) Descriptor
deprecated
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
func (*Property) ProtoReflect ¶
func (x *Property) ProtoReflect() protoreflect.Message
type SchedulerClient ¶
type SchedulerClient interface { HeartBeat(ctx context.Context, in *HeartBeatReq, opts ...grpc.CallOption) (*HeartBeatResp, error) GetJob(ctx context.Context, in *GetJobReq, opts ...grpc.CallOption) (*GetJobResp, error) }
SchedulerClient is the client API for Scheduler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSchedulerClient ¶
func NewSchedulerClient(cc grpc.ClientConnInterface) SchedulerClient
type SchedulerServer ¶
type SchedulerServer interface { HeartBeat(context.Context, *HeartBeatReq) (*HeartBeatResp, error) GetJob(context.Context, *GetJobReq) (*GetJobResp, error) }
SchedulerServer is the server API for Scheduler service.
type UnimplementedSchedulerServer ¶
type UnimplementedSchedulerServer struct { }
UnimplementedSchedulerServer can be embedded to have forward compatible implementations.
func (*UnimplementedSchedulerServer) GetJob ¶
func (*UnimplementedSchedulerServer) GetJob(context.Context, *GetJobReq) (*GetJobResp, error)
func (*UnimplementedSchedulerServer) HeartBeat ¶
func (*UnimplementedSchedulerServer) HeartBeat(context.Context, *HeartBeatReq) (*HeartBeatResp, error)
Click to show internal directories.
Click to hide internal directories.