Documentation ¶
Index ¶
- Variables
- func RegisterStaffServer(s grpc.ServiceRegistrar, srv StaffServer)
- type Acknowledgement
- type ClockinReply
- type ClockinRequest
- func (*ClockinRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClockinRequest) GetStaffId() string
- func (x *ClockinRequest) GetTaskId() string
- func (*ClockinRequest) ProtoMessage()
- func (x *ClockinRequest) ProtoReflect() protoreflect.Message
- func (x *ClockinRequest) Reset()
- func (x *ClockinRequest) String() string
- type ClockoutReply
- type ClockoutRequest
- func (*ClockoutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClockoutRequest) GetStaffId() string
- func (x *ClockoutRequest) GetTaskId() string
- func (*ClockoutRequest) ProtoMessage()
- func (x *ClockoutRequest) ProtoReflect() protoreflect.Message
- func (x *ClockoutRequest) Reset()
- func (x *ClockoutRequest) String() string
- type CopyDir
- func (*CopyDir) Descriptor() ([]byte, []int)deprecated
- func (x *CopyDir) GetDst() uint32
- func (x *CopyDir) GetDstPath() string
- func (x *CopyDir) GetRecursive() bool
- func (x *CopyDir) GetSrc() uint32
- func (x *CopyDir) GetSrcPath() string
- func (*CopyDir) ProtoMessage()
- func (x *CopyDir) ProtoReflect() protoreflect.Message
- func (x *CopyDir) Reset()
- func (x *CopyDir) String() string
- type CopyFile
- func (*CopyFile) Descriptor() ([]byte, []int)deprecated
- func (x *CopyFile) GetDst() uint32
- func (x *CopyFile) GetDstPath() string
- func (x *CopyFile) GetSrc() uint32
- func (x *CopyFile) GetSrcPath() string
- func (*CopyFile) ProtoMessage()
- func (x *CopyFile) ProtoReflect() protoreflect.Message
- func (x *CopyFile) Reset()
- func (x *CopyFile) String() string
- type CopyMultipart
- func (*CopyMultipart) Descriptor() ([]byte, []int)deprecated
- func (x *CopyMultipart) GetDst() uint32
- func (x *CopyMultipart) GetDstPath() string
- func (x *CopyMultipart) GetIndex() uint32
- func (x *CopyMultipart) GetMultipartId() string
- func (x *CopyMultipart) GetOffset() int64
- func (x *CopyMultipart) GetSize() int64
- func (x *CopyMultipart) GetSrc() uint32
- func (x *CopyMultipart) GetSrcPath() string
- func (*CopyMultipart) ProtoMessage()
- func (x *CopyMultipart) ProtoReflect() protoreflect.Message
- func (x *CopyMultipart) Reset()
- func (x *CopyMultipart) String() string
- type CopyMultipartFile
- func (*CopyMultipartFile) Descriptor() ([]byte, []int)deprecated
- func (x *CopyMultipartFile) GetDst() uint32
- func (x *CopyMultipartFile) GetDstPath() string
- func (x *CopyMultipartFile) GetSize() int64
- func (x *CopyMultipartFile) GetSrc() uint32
- func (x *CopyMultipartFile) GetSrcPath() string
- func (*CopyMultipartFile) ProtoMessage()
- func (x *CopyMultipartFile) ProtoReflect() protoreflect.Message
- func (x *CopyMultipartFile) Reset()
- func (x *CopyMultipartFile) String() string
- type CopySingleFile
- func (*CopySingleFile) Descriptor() ([]byte, []int)deprecated
- func (x *CopySingleFile) GetDst() uint32
- func (x *CopySingleFile) GetDstPath() string
- func (x *CopySingleFile) GetSize() int64
- func (x *CopySingleFile) GetSrc() uint32
- func (x *CopySingleFile) GetSrcPath() string
- func (*CopySingleFile) ProtoMessage()
- func (x *CopySingleFile) ProtoReflect() protoreflect.Message
- func (x *CopySingleFile) Reset()
- func (x *CopySingleFile) String() string
- type ElectReply
- func (*ElectReply) Descriptor() ([]byte, []int)deprecated
- func (x *ElectReply) GetAddr() string
- func (x *ElectReply) GetLeaderId() string
- func (x *ElectReply) GetSubject() string
- func (x *ElectReply) GetWorkerIds() []string
- func (*ElectReply) ProtoMessage()
- func (x *ElectReply) ProtoReflect() protoreflect.Message
- func (x *ElectReply) Reset()
- func (x *ElectReply) String() string
- type ElectRequest
- func (*ElectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ElectRequest) GetStaffId() string
- func (x *ElectRequest) GetTaskId() string
- func (*ElectRequest) ProtoMessage()
- func (x *ElectRequest) ProtoReflect() protoreflect.Message
- func (x *ElectRequest) Reset()
- func (x *ElectRequest) String() string
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetPairs() []*Pair
- func (x *Endpoint) GetType() string
- func (x *Endpoint) ParseStorager() (types.Storager, error)
- func (*Endpoint) ProtoMessage()
- func (x *Endpoint) ProtoReflect() protoreflect.Message
- func (x *Endpoint) Reset()
- func (x *Endpoint) String() string
- type Job
- type JobReply
- func (*JobReply) Descriptor() ([]byte, []int)deprecated
- func (x *JobReply) GetId() string
- func (x *JobReply) GetMessage() string
- func (x *JobReply) GetStatus() uint32
- func (*JobReply) ProtoMessage()
- func (x *JobReply) ProtoReflect() protoreflect.Message
- func (x *JobReply) Reset()
- func (x *JobReply) String() string
- type Pair
- type RegisterReply
- func (*RegisterReply) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterReply) GetAddr() string
- func (x *RegisterReply) GetSubject() string
- func (*RegisterReply) ProtoMessage()
- func (x *RegisterReply) ProtoReflect() protoreflect.Message
- func (x *RegisterReply) Reset()
- func (x *RegisterReply) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAddr() string
- func (x *RegisterRequest) GetId() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type StaffClient
- type StaffServer
- type Task
- type TaskFinish
- type TaskReply
- func (*TaskReply) Descriptor() ([]byte, []int)deprecated
- func (x *TaskReply) GetId() string
- func (x *TaskReply) GetMessage() string
- func (x *TaskReply) GetStaffId() string
- func (x *TaskReply) GetStatus() uint32
- func (*TaskReply) ProtoMessage()
- func (x *TaskReply) ProtoReflect() protoreflect.Message
- func (x *TaskReply) Reset()
- func (x *TaskReply) String() string
- type UnimplementedStaffServer
- type UnsafeStaffServer
Constants ¶
This section is empty.
Variables ¶
var File_job_proto protoreflect.FileDescriptor
var File_staff_proto protoreflect.FileDescriptor
var File_task_proto protoreflect.FileDescriptor
var Staff_ServiceDesc = grpc.ServiceDesc{ ServiceName: "staff.Staff", HandlerType: (*StaffServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Staff_Register_Handler, }, { MethodName: "Elect", Handler: _Staff_Elect_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "staff.proto", }
Staff_ServiceDesc is the grpc.ServiceDesc for Staff service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStaffServer ¶
func RegisterStaffServer(s grpc.ServiceRegistrar, srv StaffServer)
Types ¶
type Acknowledgement ¶
type Acknowledgement struct {
// contains filtered or unexported fields
}
func (*Acknowledgement) Descriptor
deprecated
func (*Acknowledgement) Descriptor() ([]byte, []int)
Deprecated: Use Acknowledgement.ProtoReflect.Descriptor instead.
func (*Acknowledgement) ProtoMessage ¶
func (*Acknowledgement) ProtoMessage()
func (*Acknowledgement) ProtoReflect ¶
func (x *Acknowledgement) ProtoReflect() protoreflect.Message
func (*Acknowledgement) Reset ¶
func (x *Acknowledgement) Reset()
func (*Acknowledgement) String ¶
func (x *Acknowledgement) String() string
type ClockinReply ¶
type ClockinReply struct {
// contains filtered or unexported fields
}
func (*ClockinReply) Descriptor
deprecated
func (*ClockinReply) Descriptor() ([]byte, []int)
Deprecated: Use ClockinReply.ProtoReflect.Descriptor instead.
func (*ClockinReply) ProtoMessage ¶
func (*ClockinReply) ProtoMessage()
func (*ClockinReply) ProtoReflect ¶
func (x *ClockinReply) ProtoReflect() protoreflect.Message
func (*ClockinReply) Reset ¶
func (x *ClockinReply) Reset()
func (*ClockinReply) String ¶
func (x *ClockinReply) String() string
type ClockinRequest ¶
type ClockinRequest struct { StaffId string `protobuf:"bytes,1,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
func (*ClockinRequest) Descriptor
deprecated
func (*ClockinRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClockinRequest.ProtoReflect.Descriptor instead.
func (*ClockinRequest) GetStaffId ¶
func (x *ClockinRequest) GetStaffId() string
func (*ClockinRequest) GetTaskId ¶
func (x *ClockinRequest) GetTaskId() string
func (*ClockinRequest) ProtoMessage ¶
func (*ClockinRequest) ProtoMessage()
func (*ClockinRequest) ProtoReflect ¶
func (x *ClockinRequest) ProtoReflect() protoreflect.Message
func (*ClockinRequest) Reset ¶
func (x *ClockinRequest) Reset()
func (*ClockinRequest) String ¶
func (x *ClockinRequest) String() string
type ClockoutReply ¶
type ClockoutReply struct {
// contains filtered or unexported fields
}
func (*ClockoutReply) Descriptor
deprecated
func (*ClockoutReply) Descriptor() ([]byte, []int)
Deprecated: Use ClockoutReply.ProtoReflect.Descriptor instead.
func (*ClockoutReply) ProtoMessage ¶
func (*ClockoutReply) ProtoMessage()
func (*ClockoutReply) ProtoReflect ¶
func (x *ClockoutReply) ProtoReflect() protoreflect.Message
func (*ClockoutReply) Reset ¶
func (x *ClockoutReply) Reset()
func (*ClockoutReply) String ¶
func (x *ClockoutReply) String() string
type ClockoutRequest ¶
type ClockoutRequest struct { StaffId string `protobuf:"bytes,1,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
func (*ClockoutRequest) Descriptor
deprecated
func (*ClockoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClockoutRequest.ProtoReflect.Descriptor instead.
func (*ClockoutRequest) GetStaffId ¶
func (x *ClockoutRequest) GetStaffId() string
func (*ClockoutRequest) GetTaskId ¶
func (x *ClockoutRequest) GetTaskId() string
func (*ClockoutRequest) ProtoMessage ¶
func (*ClockoutRequest) ProtoMessage()
func (*ClockoutRequest) ProtoReflect ¶
func (x *ClockoutRequest) ProtoReflect() protoreflect.Message
func (*ClockoutRequest) Reset ¶
func (x *ClockoutRequest) Reset()
func (*ClockoutRequest) String ¶
func (x *ClockoutRequest) String() string
type CopyDir ¶
type CopyDir struct { Src uint32 `protobuf:"varint,1,opt,name=src,proto3" json:"src,omitempty"` Dst uint32 `protobuf:"varint,2,opt,name=dst,proto3" json:"dst,omitempty"` SrcPath string `protobuf:"bytes,3,opt,name=src_path,json=srcPath,proto3" json:"src_path,omitempty"` DstPath string `protobuf:"bytes,4,opt,name=dst_path,json=dstPath,proto3" json:"dst_path,omitempty"` Recursive bool `protobuf:"varint,5,opt,name=recursive,proto3" json:"recursive,omitempty"` // contains filtered or unexported fields }
func (*CopyDir) Descriptor
deprecated
func (*CopyDir) GetDstPath ¶
func (*CopyDir) GetRecursive ¶
func (*CopyDir) GetSrcPath ¶
func (*CopyDir) ProtoMessage ¶
func (*CopyDir) ProtoMessage()
func (*CopyDir) ProtoReflect ¶
func (x *CopyDir) ProtoReflect() protoreflect.Message
type CopyFile ¶
type CopyFile struct { Src uint32 `protobuf:"varint,1,opt,name=src,proto3" json:"src,omitempty"` Dst uint32 `protobuf:"varint,2,opt,name=dst,proto3" json:"dst,omitempty"` SrcPath string `protobuf:"bytes,3,opt,name=src_path,json=srcPath,proto3" json:"src_path,omitempty"` DstPath string `protobuf:"bytes,4,opt,name=dst_path,json=dstPath,proto3" json:"dst_path,omitempty"` // contains filtered or unexported fields }
func (*CopyFile) Descriptor
deprecated
func (*CopyFile) GetDstPath ¶
func (*CopyFile) GetSrcPath ¶
func (*CopyFile) ProtoMessage ¶
func (*CopyFile) ProtoMessage()
func (*CopyFile) ProtoReflect ¶
func (x *CopyFile) ProtoReflect() protoreflect.Message
type CopyMultipart ¶
type CopyMultipart struct { Src uint32 `protobuf:"varint,1,opt,name=src,proto3" json:"src,omitempty"` Dst uint32 `protobuf:"varint,2,opt,name=dst,proto3" json:"dst,omitempty"` SrcPath string `protobuf:"bytes,3,opt,name=src_path,json=srcPath,proto3" json:"src_path,omitempty"` DstPath string `protobuf:"bytes,4,opt,name=dst_path,json=dstPath,proto3" json:"dst_path,omitempty"` MultipartId string `protobuf:"bytes,5,opt,name=multipart_id,json=multipartId,proto3" json:"multipart_id,omitempty"` Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` Index uint32 `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"` Offset int64 `protobuf:"varint,8,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*CopyMultipart) Descriptor
deprecated
func (*CopyMultipart) Descriptor() ([]byte, []int)
Deprecated: Use CopyMultipart.ProtoReflect.Descriptor instead.
func (*CopyMultipart) GetDst ¶
func (x *CopyMultipart) GetDst() uint32
func (*CopyMultipart) GetDstPath ¶
func (x *CopyMultipart) GetDstPath() string
func (*CopyMultipart) GetIndex ¶
func (x *CopyMultipart) GetIndex() uint32
func (*CopyMultipart) GetMultipartId ¶
func (x *CopyMultipart) GetMultipartId() string
func (*CopyMultipart) GetOffset ¶
func (x *CopyMultipart) GetOffset() int64
func (*CopyMultipart) GetSize ¶
func (x *CopyMultipart) GetSize() int64
func (*CopyMultipart) GetSrc ¶
func (x *CopyMultipart) GetSrc() uint32
func (*CopyMultipart) GetSrcPath ¶
func (x *CopyMultipart) GetSrcPath() string
func (*CopyMultipart) ProtoMessage ¶
func (*CopyMultipart) ProtoMessage()
func (*CopyMultipart) ProtoReflect ¶
func (x *CopyMultipart) ProtoReflect() protoreflect.Message
func (*CopyMultipart) Reset ¶
func (x *CopyMultipart) Reset()
func (*CopyMultipart) String ¶
func (x *CopyMultipart) String() string
type CopyMultipartFile ¶
type CopyMultipartFile struct { Src uint32 `protobuf:"varint,1,opt,name=src,proto3" json:"src,omitempty"` Dst uint32 `protobuf:"varint,2,opt,name=dst,proto3" json:"dst,omitempty"` SrcPath string `protobuf:"bytes,3,opt,name=src_path,json=srcPath,proto3" json:"src_path,omitempty"` DstPath string `protobuf:"bytes,4,opt,name=dst_path,json=dstPath,proto3" json:"dst_path,omitempty"` Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*CopyMultipartFile) Descriptor
deprecated
func (*CopyMultipartFile) Descriptor() ([]byte, []int)
Deprecated: Use CopyMultipartFile.ProtoReflect.Descriptor instead.
func (*CopyMultipartFile) GetDst ¶
func (x *CopyMultipartFile) GetDst() uint32
func (*CopyMultipartFile) GetDstPath ¶
func (x *CopyMultipartFile) GetDstPath() string
func (*CopyMultipartFile) GetSize ¶
func (x *CopyMultipartFile) GetSize() int64
func (*CopyMultipartFile) GetSrc ¶
func (x *CopyMultipartFile) GetSrc() uint32
func (*CopyMultipartFile) GetSrcPath ¶
func (x *CopyMultipartFile) GetSrcPath() string
func (*CopyMultipartFile) ProtoMessage ¶
func (*CopyMultipartFile) ProtoMessage()
func (*CopyMultipartFile) ProtoReflect ¶
func (x *CopyMultipartFile) ProtoReflect() protoreflect.Message
func (*CopyMultipartFile) Reset ¶
func (x *CopyMultipartFile) Reset()
func (*CopyMultipartFile) String ¶
func (x *CopyMultipartFile) String() string
type CopySingleFile ¶
type CopySingleFile struct { Src uint32 `protobuf:"varint,1,opt,name=src,proto3" json:"src,omitempty"` Dst uint32 `protobuf:"varint,2,opt,name=dst,proto3" json:"dst,omitempty"` SrcPath string `protobuf:"bytes,3,opt,name=src_path,json=srcPath,proto3" json:"src_path,omitempty"` DstPath string `protobuf:"bytes,4,opt,name=dst_path,json=dstPath,proto3" json:"dst_path,omitempty"` Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*CopySingleFile) Descriptor
deprecated
func (*CopySingleFile) Descriptor() ([]byte, []int)
Deprecated: Use CopySingleFile.ProtoReflect.Descriptor instead.
func (*CopySingleFile) GetDst ¶
func (x *CopySingleFile) GetDst() uint32
func (*CopySingleFile) GetDstPath ¶
func (x *CopySingleFile) GetDstPath() string
func (*CopySingleFile) GetSize ¶
func (x *CopySingleFile) GetSize() int64
func (*CopySingleFile) GetSrc ¶
func (x *CopySingleFile) GetSrc() uint32
func (*CopySingleFile) GetSrcPath ¶
func (x *CopySingleFile) GetSrcPath() string
func (*CopySingleFile) ProtoMessage ¶
func (*CopySingleFile) ProtoMessage()
func (*CopySingleFile) ProtoReflect ¶
func (x *CopySingleFile) ProtoReflect() protoreflect.Message
func (*CopySingleFile) Reset ¶
func (x *CopySingleFile) Reset()
func (*CopySingleFile) String ¶
func (x *CopySingleFile) String() string
type ElectReply ¶
type ElectReply struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` LeaderId string `protobuf:"bytes,3,opt,name=leader_id,json=leaderId,proto3" json:"leader_id,omitempty"` WorkerIds []string `protobuf:"bytes,4,rep,name=worker_ids,json=workerIds,proto3" json:"worker_ids,omitempty"` // contains filtered or unexported fields }
func (*ElectReply) Descriptor
deprecated
func (*ElectReply) Descriptor() ([]byte, []int)
Deprecated: Use ElectReply.ProtoReflect.Descriptor instead.
func (*ElectReply) GetAddr ¶
func (x *ElectReply) GetAddr() string
func (*ElectReply) GetLeaderId ¶
func (x *ElectReply) GetLeaderId() string
func (*ElectReply) GetSubject ¶
func (x *ElectReply) GetSubject() string
func (*ElectReply) GetWorkerIds ¶
func (x *ElectReply) GetWorkerIds() []string
func (*ElectReply) ProtoMessage ¶
func (*ElectReply) ProtoMessage()
func (*ElectReply) ProtoReflect ¶
func (x *ElectReply) ProtoReflect() protoreflect.Message
func (*ElectReply) Reset ¶
func (x *ElectReply) Reset()
func (*ElectReply) String ¶
func (x *ElectReply) String() string
type ElectRequest ¶
type ElectRequest struct { StaffId string `protobuf:"bytes,1,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
func (*ElectRequest) Descriptor
deprecated
func (*ElectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ElectRequest.ProtoReflect.Descriptor instead.
func (*ElectRequest) GetStaffId ¶
func (x *ElectRequest) GetStaffId() string
func (*ElectRequest) GetTaskId ¶
func (x *ElectRequest) GetTaskId() string
func (*ElectRequest) ProtoMessage ¶
func (*ElectRequest) ProtoMessage()
func (*ElectRequest) ProtoReflect ¶
func (x *ElectRequest) ProtoReflect() protoreflect.Message
func (*ElectRequest) Reset ¶
func (x *ElectRequest) Reset()
func (*ElectRequest) String ¶
func (x *ElectRequest) String() string
type Endpoint ¶
type Endpoint struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` // contains filtered or unexported fields }
func (*Endpoint) Descriptor
deprecated
func (*Endpoint) ParseStorager ¶
ParseStorager parse endpoint into
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
type Job ¶
type Job struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
func (*Job) GetContent ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
type JobReply ¶
type JobReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status uint32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*JobReply) Descriptor
deprecated
func (*JobReply) GetMessage ¶
func (*JobReply) ProtoMessage ¶
func (*JobReply) ProtoMessage()
func (*JobReply) ProtoReflect ¶
func (x *JobReply) ProtoReflect() protoreflect.Message
type Pair ¶
type Pair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Pair) Descriptor
deprecated
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) ProtoReflect ¶
func (x *Pair) ProtoReflect() protoreflect.Message
type RegisterReply ¶
type RegisterReply struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*RegisterReply) Descriptor
deprecated
func (*RegisterReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReply.ProtoReflect.Descriptor instead.
func (*RegisterReply) GetAddr ¶
func (x *RegisterReply) GetAddr() string
func (*RegisterReply) GetSubject ¶
func (x *RegisterReply) GetSubject() string
func (*RegisterReply) ProtoMessage ¶
func (*RegisterReply) ProtoMessage()
func (*RegisterReply) ProtoReflect ¶
func (x *RegisterReply) ProtoReflect() protoreflect.Message
func (*RegisterReply) Reset ¶
func (x *RegisterReply) Reset()
func (*RegisterReply) String ¶
func (x *RegisterReply) String() string
type RegisterRequest ¶
type RegisterRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAddr ¶
func (x *RegisterRequest) GetAddr() string
func (*RegisterRequest) GetId ¶
func (x *RegisterRequest) GetId() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type StaffClient ¶
type StaffClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error) Elect(ctx context.Context, in *ElectRequest, opts ...grpc.CallOption) (*ElectReply, error) }
StaffClient is the client API for Staff 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 NewStaffClient ¶
func NewStaffClient(cc grpc.ClientConnInterface) StaffClient
type StaffServer ¶
type StaffServer interface { Register(context.Context, *RegisterRequest) (*RegisterReply, error) Elect(context.Context, *ElectRequest) (*ElectReply, error) // contains filtered or unexported methods }
StaffServer is the server API for Staff service. All implementations must embed UnimplementedStaffServer for forward compatibility
type Task ¶
type Task struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Endpoints []*Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` Job *Job `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetEndpoints ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type TaskFinish ¶
type TaskFinish struct {
// contains filtered or unexported fields
}
func (*TaskFinish) Descriptor
deprecated
func (*TaskFinish) Descriptor() ([]byte, []int)
Deprecated: Use TaskFinish.ProtoReflect.Descriptor instead.
func (*TaskFinish) ProtoMessage ¶
func (*TaskFinish) ProtoMessage()
func (*TaskFinish) ProtoReflect ¶
func (x *TaskFinish) ProtoReflect() protoreflect.Message
func (*TaskFinish) Reset ¶
func (x *TaskFinish) Reset()
func (*TaskFinish) String ¶
func (x *TaskFinish) String() string
type TaskReply ¶
type TaskReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` StaffId string `protobuf:"bytes,2,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` Status uint32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TaskReply) Descriptor
deprecated
func (*TaskReply) GetMessage ¶
func (*TaskReply) GetStaffId ¶
func (*TaskReply) ProtoMessage ¶
func (*TaskReply) ProtoMessage()
func (*TaskReply) ProtoReflect ¶
func (x *TaskReply) ProtoReflect() protoreflect.Message
type UnimplementedStaffServer ¶
type UnimplementedStaffServer struct { }
UnimplementedStaffServer must be embedded to have forward compatible implementations.
func (UnimplementedStaffServer) Elect ¶
func (UnimplementedStaffServer) Elect(context.Context, *ElectRequest) (*ElectReply, error)
func (UnimplementedStaffServer) Register ¶
func (UnimplementedStaffServer) Register(context.Context, *RegisterRequest) (*RegisterReply, error)
type UnsafeStaffServer ¶
type UnsafeStaffServer interface {
// contains filtered or unexported methods
}
UnsafeStaffServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StaffServer will result in compilation errors.