Commit ceb64402 authored by vicotor's avatar vicotor

add standard task

parent 3833d2e6
...@@ -31,6 +31,7 @@ type WorkerMessage struct { ...@@ -31,6 +31,7 @@ type WorkerMessage struct {
// *WorkerMessage_DeviceUsage // *WorkerMessage_DeviceUsage
// *WorkerMessage_GoodbyeMessage // *WorkerMessage_GoodbyeMessage
// *WorkerMessage_ResourceMap // *WorkerMessage_ResourceMap
// *WorkerMessage_FetchStandardTask
Message isWorkerMessage_Message `protobuf_oneof:"message"` Message isWorkerMessage_Message `protobuf_oneof:"message"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -86,6 +87,9 @@ type WorkerMessage_GoodbyeMessage struct { ...@@ -86,6 +87,9 @@ type WorkerMessage_GoodbyeMessage struct {
type WorkerMessage_ResourceMap struct { type WorkerMessage_ResourceMap struct {
ResourceMap *SubmitResourceMap `protobuf:"bytes,7,opt,name=resource_map,json=resourceMap,proto3,oneof" json:"resource_map,omitempty"` ResourceMap *SubmitResourceMap `protobuf:"bytes,7,opt,name=resource_map,json=resourceMap,proto3,oneof" json:"resource_map,omitempty"`
} }
type WorkerMessage_FetchStandardTask struct {
FetchStandardTask *FetchStandardTask `protobuf:"bytes,8,opt,name=fetch_standard_task,json=fetchStandardTask,proto3,oneof" json:"fetch_standard_task,omitempty"`
}
func (*WorkerMessage_HeartbeatResponse) isWorkerMessage_Message() {} func (*WorkerMessage_HeartbeatResponse) isWorkerMessage_Message() {}
func (*WorkerMessage_SubmitTaskResult) isWorkerMessage_Message() {} func (*WorkerMessage_SubmitTaskResult) isWorkerMessage_Message() {}
...@@ -94,6 +98,7 @@ func (*WorkerMessage_DeviceInfo) isWorkerMessage_Message() {} ...@@ -94,6 +98,7 @@ func (*WorkerMessage_DeviceInfo) isWorkerMessage_Message() {}
func (*WorkerMessage_DeviceUsage) isWorkerMessage_Message() {} func (*WorkerMessage_DeviceUsage) isWorkerMessage_Message() {}
func (*WorkerMessage_GoodbyeMessage) isWorkerMessage_Message() {} func (*WorkerMessage_GoodbyeMessage) isWorkerMessage_Message() {}
func (*WorkerMessage_ResourceMap) isWorkerMessage_Message() {} func (*WorkerMessage_ResourceMap) isWorkerMessage_Message() {}
func (*WorkerMessage_FetchStandardTask) isWorkerMessage_Message() {}
func (m *WorkerMessage) GetMessage() isWorkerMessage_Message { func (m *WorkerMessage) GetMessage() isWorkerMessage_Message {
if m != nil { if m != nil {
...@@ -151,6 +156,13 @@ func (m *WorkerMessage) GetResourceMap() *SubmitResourceMap { ...@@ -151,6 +156,13 @@ func (m *WorkerMessage) GetResourceMap() *SubmitResourceMap {
return nil return nil
} }
func (m *WorkerMessage) GetFetchStandardTask() *FetchStandardTask {
if x, ok := m.GetMessage().(*WorkerMessage_FetchStandardTask); ok {
return x.FetchStandardTask
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*WorkerMessage) XXX_OneofWrappers() []interface{} { func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
return []interface{}{ return []interface{}{
...@@ -161,6 +173,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} { ...@@ -161,6 +173,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
(*WorkerMessage_DeviceUsage)(nil), (*WorkerMessage_DeviceUsage)(nil),
(*WorkerMessage_GoodbyeMessage)(nil), (*WorkerMessage_GoodbyeMessage)(nil),
(*WorkerMessage_ResourceMap)(nil), (*WorkerMessage_ResourceMap)(nil),
(*WorkerMessage_FetchStandardTask)(nil),
} }
} }
...@@ -966,6 +979,44 @@ func (m *ProofTaskResult) GetContainerPubkey() []byte { ...@@ -966,6 +979,44 @@ func (m *ProofTaskResult) GetContainerPubkey() []byte {
return nil return nil
} }
type FetchStandardTask struct {
TaskType uint64 `protobuf:"varint,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FetchStandardTask) Reset() { *m = FetchStandardTask{} }
func (m *FetchStandardTask) String() string { return proto.CompactTextString(m) }
func (*FetchStandardTask) ProtoMessage() {}
func (*FetchStandardTask) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{16}
}
func (m *FetchStandardTask) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FetchStandardTask.Unmarshal(m, b)
}
func (m *FetchStandardTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FetchStandardTask.Marshal(b, m, deterministic)
}
func (m *FetchStandardTask) XXX_Merge(src proto.Message) {
xxx_messageInfo_FetchStandardTask.Merge(m, src)
}
func (m *FetchStandardTask) XXX_Size() int {
return xxx_messageInfo_FetchStandardTask.Size(m)
}
func (m *FetchStandardTask) XXX_DiscardUnknown() {
xxx_messageInfo_FetchStandardTask.DiscardUnknown(m)
}
var xxx_messageInfo_FetchStandardTask proto.InternalMessageInfo
func (m *FetchStandardTask) GetTaskType() uint64 {
if m != nil {
return m.TaskType
}
return 0
}
type DispatchTaskRequest struct { type DispatchTaskRequest struct {
TaskData *v1.TaskContent `protobuf:"bytes,1,opt,name=task_data,json=taskData,proto3" json:"task_data,omitempty"` TaskData *v1.TaskContent `protobuf:"bytes,1,opt,name=task_data,json=taskData,proto3" json:"task_data,omitempty"`
Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"` Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
...@@ -978,7 +1029,7 @@ func (m *DispatchTaskRequest) Reset() { *m = DispatchTaskRequest{} } ...@@ -978,7 +1029,7 @@ func (m *DispatchTaskRequest) Reset() { *m = DispatchTaskRequest{} }
func (m *DispatchTaskRequest) String() string { return proto.CompactTextString(m) } func (m *DispatchTaskRequest) String() string { return proto.CompactTextString(m) }
func (*DispatchTaskRequest) ProtoMessage() {} func (*DispatchTaskRequest) ProtoMessage() {}
func (*DispatchTaskRequest) Descriptor() ([]byte, []int) { func (*DispatchTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{16} return fileDescriptor_810ae261dc8e2975, []int{17}
} }
func (m *DispatchTaskRequest) XXX_Unmarshal(b []byte) error { func (m *DispatchTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DispatchTaskRequest.Unmarshal(m, b) return xxx_messageInfo_DispatchTaskRequest.Unmarshal(m, b)
...@@ -1024,7 +1075,7 @@ func (m *DispatchTaskResponse) Reset() { *m = DispatchTaskResponse{} } ...@@ -1024,7 +1075,7 @@ func (m *DispatchTaskResponse) Reset() { *m = DispatchTaskResponse{} }
func (m *DispatchTaskResponse) String() string { return proto.CompactTextString(m) } func (m *DispatchTaskResponse) String() string { return proto.CompactTextString(m) }
func (*DispatchTaskResponse) ProtoMessage() {} func (*DispatchTaskResponse) ProtoMessage() {}
func (*DispatchTaskResponse) Descriptor() ([]byte, []int) { func (*DispatchTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{17} return fileDescriptor_810ae261dc8e2975, []int{18}
} }
func (m *DispatchTaskResponse) XXX_Unmarshal(b []byte) error { func (m *DispatchTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DispatchTaskResponse.Unmarshal(m, b) return xxx_messageInfo_DispatchTaskResponse.Unmarshal(m, b)
...@@ -1068,7 +1119,7 @@ func (m *ManagerListRequest) Reset() { *m = ManagerListRequest{} } ...@@ -1068,7 +1119,7 @@ func (m *ManagerListRequest) Reset() { *m = ManagerListRequest{} }
func (m *ManagerListRequest) String() string { return proto.CompactTextString(m) } func (m *ManagerListRequest) String() string { return proto.CompactTextString(m) }
func (*ManagerListRequest) ProtoMessage() {} func (*ManagerListRequest) ProtoMessage() {}
func (*ManagerListRequest) Descriptor() ([]byte, []int) { func (*ManagerListRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{18} return fileDescriptor_810ae261dc8e2975, []int{19}
} }
func (m *ManagerListRequest) XXX_Unmarshal(b []byte) error { func (m *ManagerListRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ManagerListRequest.Unmarshal(m, b) return xxx_messageInfo_ManagerListRequest.Unmarshal(m, b)
...@@ -1099,7 +1150,7 @@ func (m *ManagerListResponse) Reset() { *m = ManagerListResponse{} } ...@@ -1099,7 +1150,7 @@ func (m *ManagerListResponse) Reset() { *m = ManagerListResponse{} }
func (m *ManagerListResponse) String() string { return proto.CompactTextString(m) } func (m *ManagerListResponse) String() string { return proto.CompactTextString(m) }
func (*ManagerListResponse) ProtoMessage() {} func (*ManagerListResponse) ProtoMessage() {}
func (*ManagerListResponse) Descriptor() ([]byte, []int) { func (*ManagerListResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{19} return fileDescriptor_810ae261dc8e2975, []int{20}
} }
func (m *ManagerListResponse) XXX_Unmarshal(b []byte) error { func (m *ManagerListResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ManagerListResponse.Unmarshal(m, b) return xxx_messageInfo_ManagerListResponse.Unmarshal(m, b)
...@@ -1143,6 +1194,7 @@ func init() { ...@@ -1143,6 +1194,7 @@ func init() {
proto.RegisterType((*SubmitTaskResult)(nil), "nodemanager.v1.SubmitTaskResult") proto.RegisterType((*SubmitTaskResult)(nil), "nodemanager.v1.SubmitTaskResult")
proto.RegisterType((*SubmitResourceMap)(nil), "nodemanager.v1.SubmitResourceMap") proto.RegisterType((*SubmitResourceMap)(nil), "nodemanager.v1.SubmitResourceMap")
proto.RegisterType((*ProofTaskResult)(nil), "nodemanager.v1.ProofTaskResult") proto.RegisterType((*ProofTaskResult)(nil), "nodemanager.v1.ProofTaskResult")
proto.RegisterType((*FetchStandardTask)(nil), "nodemanager.v1.FetchStandardTask")
proto.RegisterType((*DispatchTaskRequest)(nil), "nodemanager.v1.DispatchTaskRequest") proto.RegisterType((*DispatchTaskRequest)(nil), "nodemanager.v1.DispatchTaskRequest")
proto.RegisterType((*DispatchTaskResponse)(nil), "nodemanager.v1.DispatchTaskResponse") proto.RegisterType((*DispatchTaskResponse)(nil), "nodemanager.v1.DispatchTaskResponse")
proto.RegisterType((*ManagerListRequest)(nil), "nodemanager.v1.ManagerListRequest") proto.RegisterType((*ManagerListRequest)(nil), "nodemanager.v1.ManagerListRequest")
...@@ -1154,81 +1206,84 @@ func init() { ...@@ -1154,81 +1206,84 @@ func init() {
} }
var fileDescriptor_810ae261dc8e2975 = []byte{ var fileDescriptor_810ae261dc8e2975 = []byte{
// 1209 bytes of a gzipped FileDescriptorProto // 1250 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdf, 0x72, 0xdb, 0xc4, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x72, 0xdb, 0x44,
0x17, 0xae, 0xff, 0xc4, 0x89, 0x8f, 0x13, 0xd9, 0x5e, 0xfb, 0xd7, 0x9f, 0x49, 0x29, 0x4d, 0xd5, 0x14, 0xae, 0x7f, 0xe2, 0xc4, 0xc7, 0x89, 0x6c, 0xaf, 0x4d, 0x31, 0x29, 0xa5, 0xa9, 0x3a, 0x4c,
0x61, 0x9a, 0x0e, 0x60, 0xe3, 0xf0, 0x67, 0x98, 0xf6, 0x8a, 0x34, 0x69, 0x1c, 0x20, 0xa9, 0x51, 0xd3, 0x01, 0xec, 0x3a, 0xfc, 0x0c, 0xd3, 0x5e, 0x91, 0xa6, 0xad, 0x0b, 0x24, 0x35, 0x4a, 0x09,
0x4a, 0xe8, 0x30, 0x1d, 0x3c, 0x6b, 0x6b, 0x63, 0x6b, 0x1c, 0x69, 0x85, 0x76, 0x15, 0xf0, 0xcb, 0x1d, 0xa6, 0x83, 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 0x8f, 0xfb, 0xe2, 0xe3, 0x03, 0xf9,
0x9d, 0xdf, 0x4e, 0x03, 0xaf, 0x8e, 0xfa, 0xfb, 0x27, 0x4c, 0xd2, 0xa8, 0x62, 0xff, 0xe4, 0xab, 0x8b, 0xee, 0xd0, 0xf3, 0xde, 0x84, 0x04, 0x3d, 0x39, 0xe8, 0x4d, 0x68, 0x2f, 0xfb, 0x43, 0xff,
0x89, 0xc9, 0xc7, 0x8f, 0xcf, 0xbb, 0xc3, 0x12, 0xee, 0xfe, 0xd1, 0xbf, 0x01, 0x00, 0x00, 0xff, 0x30, 0x35, 0xbc, 0xe8, 0xff, 0x5c, 0x2c, 0x9d, 0xbc, 0x7c, 0xf9, 0x4b, 0xd1, 0x38, 0x49, 0xed,
0xff, 0x16, 0xf8, 0xd0, 0xdb, 0x27, 0x0c, 0x00, 0x00, 0x7f, 0xd6, 0xff, 0x3d, 0x03, 0xbc, 0x3a, 0xeb, 0xff, 0x5d, 0xdc, 0xcd, 0x02, 0xaf, 0x9e, 0x0e,
0x0f, 0x8f, 0x09, 0xc7, 0x22, 0x63, 0xff, 0x14, 0xeb, 0xa9, 0xc9, 0x07, 0x0f, 0xce, 0xfa, 0xa3,
0x8a, 0xdc, 0xfd, 0xc3, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x64, 0xad, 0xd6, 0x76, 0xae, 0x0c,
0x00, 0x00,
} }
...@@ -14,6 +14,7 @@ message WorkerMessage { ...@@ -14,6 +14,7 @@ message WorkerMessage {
DeviceUsageResponse device_usage = 5; DeviceUsageResponse device_usage = 5;
GoodbyeMessage goodbye_message = 6; GoodbyeMessage goodbye_message = 6;
SubmitResourceMap resource_map = 7; SubmitResourceMap resource_map = 7;
FetchStandardTask fetch_standard_task = 8;
} }
} }
...@@ -105,6 +106,10 @@ message ProofTaskResult { ...@@ -105,6 +106,10 @@ message ProofTaskResult {
bytes container_pubkey = 4; bytes container_pubkey = 4;
} }
message FetchStandardTask {
uint64 task_type = 1; // fetch a standard task with special task_type.
}
message DispatchTaskRequest { message DispatchTaskRequest {
base.v1.TaskContent task_data = 1; base.v1.TaskContent task_data = 1;
string miner = 2; string miner = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment