Commit 8f1499cf authored by Your Name's avatar Your Name

add input len

parent e47ee4db
...@@ -34,6 +34,7 @@ message TaskContent { ...@@ -34,6 +34,7 @@ message TaskContent {
// todo: add workload and container publickey // todo: add workload and container publickey
int64 task_workload = 10; int64 task_workload = 10;
bytes container_pubkey = 11; bytes container_pubkey = 11;
int32 task_in_len =12;
} }
message TaskResponse { message TaskResponse {
......
...@@ -91,6 +91,7 @@ type TaskContent struct { ...@@ -91,6 +91,7 @@ type TaskContent struct {
// todo: add workload and container publickey // todo: add workload and container publickey
TaskWorkload int64 `protobuf:"varint,10,opt,name=task_workload,json=taskWorkload,proto3" json:"task_workload,omitempty"` TaskWorkload int64 `protobuf:"varint,10,opt,name=task_workload,json=taskWorkload,proto3" json:"task_workload,omitempty"`
ContainerPubkey []byte `protobuf:"bytes,11,opt,name=container_pubkey,json=containerPubkey,proto3" json:"container_pubkey,omitempty"` ContainerPubkey []byte `protobuf:"bytes,11,opt,name=container_pubkey,json=containerPubkey,proto3" json:"container_pubkey,omitempty"`
TaskInLen int32 `protobuf:"varint,12,opt,name=task_in_len,json=taskInLen,proto3" json:"task_in_len,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -197,6 +198,13 @@ func (m *TaskContent) GetContainerPubkey() []byte { ...@@ -197,6 +198,13 @@ func (m *TaskContent) GetContainerPubkey() []byte {
return nil return nil
} }
func (m *TaskContent) GetTaskInLen() int32 {
if m != nil {
return m.TaskInLen
}
return 0
}
func (*TaskContent) XXX_MessageName() string { func (*TaskContent) XXX_MessageName() string {
return "base.v1.TaskContent" return "base.v1.TaskContent"
} }
...@@ -292,43 +300,44 @@ func init() { ...@@ -292,43 +300,44 @@ func init() {
func init() { proto.RegisterFile("base/v1/odysseus.proto", fileDescriptor_91b466c680c1fa25) } func init() { proto.RegisterFile("base/v1/odysseus.proto", fileDescriptor_91b466c680c1fa25) }
var fileDescriptor_91b466c680c1fa25 = []byte{ var fileDescriptor_91b466c680c1fa25 = []byte{
// 594 bytes of a gzipped FileDescriptorProto // 616 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xcd, 0x6e, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xdd, 0x6e, 0xd3, 0x4c,
0x10, 0xc7, 0xbb, 0x4e, 0x69, 0x92, 0x4d, 0xd2, 0xa4, 0x8b, 0x00, 0x53, 0x04, 0x8d, 0x8a, 0x40, 0x10, 0x86, 0xbb, 0x4e, 0xdb, 0x24, 0x9b, 0xa4, 0x49, 0xf7, 0xd3, 0x07, 0xa6, 0x88, 0x36, 0x2a,
0xa1, 0x12, 0xb1, 0x02, 0xb7, 0xf6, 0x84, 0x03, 0x45, 0x45, 0xaa, 0x88, 0xd2, 0x0f, 0x2a, 0x54, 0x02, 0x85, 0x4a, 0xc4, 0x0a, 0x9c, 0xb5, 0x47, 0x38, 0x50, 0x54, 0x44, 0x45, 0x94, 0xfe, 0x50,
0x29, 0xda, 0xd8, 0x53, 0xd7, 0x8a, 0xed, 0xb5, 0xf6, 0xa3, 0xc8, 0x6f, 0x83, 0x38, 0xf2, 0x24, 0xa1, 0x4a, 0xd1, 0xc6, 0x9e, 0xba, 0x56, 0x6c, 0xaf, 0xb5, 0x3f, 0x45, 0xb9, 0x1a, 0x10, 0x87,
0xc0, 0x63, 0xc0, 0x8d, 0x97, 0x00, 0xed, 0xae, 0xe3, 0xaa, 0x07, 0x38, 0x65, 0xf2, 0x9b, 0xbf, 0x5c, 0x09, 0x70, 0x19, 0x70, 0xc6, 0x55, 0xa0, 0xdd, 0x75, 0x1c, 0xf5, 0x00, 0x8e, 0xb2, 0x79,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0x0f, 0x4f, 0xcd, 0xfe, 0x04, 0x2c, 0xf1,
0xfb, 0x3a, 0xc7, 0xe9, 0xe8, 0x87, 0xb5, 0xce, 0x4f, 0x47, 0x3f, 0x9d, 0xdb, 0xa5, 0x75, 0xfe, 0x22, 0xc8, 0xec, 0x22, 0x7a, 0x11, 0xf3, 0x8a, 0xbd, 0x3b, 0xd0, 0xbf, 0x37, 0x83, 0x2f, 0x4e,
0x76, 0xe2, 0x1f, 0x82, 0xa4, 0x21, 0x95, 0xf4, 0xb7, 0xd3, 0xd0, 0x74, 0x77, 0xf7, 0x74, 0x34, 0xc5, 0xbf, 0xb8, 0xf8, 0xea, 0x54, 0x7d, 0x9d, 0xe3, 0x7c, 0xf0, 0xc3, 0x9e, 0x2e, 0xcf, 0x07,
0x5f, 0x33, 0x31, 0x5f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xdb, 0x48, 0x1a, 0xed, 0x03, 0x3f, 0x9d, 0xff, 0x8a, 0xd3, 0xe5, 0xeb, 0x91, 0x7f, 0x0c, 0x92, 0x86, 0x54, 0xd2, 0xdf, 0x4e,
0x00, 0x00, 0x4d, 0xd3, 0xfd, 0xfd, 0xf3, 0xc1, 0x74, 0xdd, 0xc4, 0x7c, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff,
0x9e, 0x6d, 0x1e, 0x43, 0x0d, 0x04, 0x00, 0x00,
} }
...@@ -24,6 +24,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package ...@@ -24,6 +24,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type WorkerMessage struct { type WorkerMessage struct {
// Types that are valid to be assigned to Message: // Types that are valid to be assigned to Message:
//
// *WorkerMessage_HeartbeatResponse // *WorkerMessage_HeartbeatResponse
// *WorkerMessage_SubmitTaskResult // *WorkerMessage_SubmitTaskResult
// *WorkerMessage_Status // *WorkerMessage_Status
...@@ -153,6 +154,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} { ...@@ -153,6 +154,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
type ManagerMessage struct { type ManagerMessage struct {
// Types that are valid to be assigned to Message: // Types that are valid to be assigned to Message:
//
// *ManagerMessage_HeartbeatRequest // *ManagerMessage_HeartbeatRequest
// *ManagerMessage_PushTaskMessage // *ManagerMessage_PushTaskMessage
// *ManagerMessage_ProofTaskResult // *ManagerMessage_ProofTaskResult
......
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