10 type TaskRequest struct {
12 Score string `json:"score"`
13 Params map[string]string `json:"params"`
14 MyResponse *TaskResponse `json:"response"`
17 func NewTaskRequest() (req *TaskRequest) {
18 req = new(TaskRequest)
22 /* Map a wire task to an internal Task Request.
24 func TaskFromProto(ptr *o.ProtoTaskRequest) (t *TaskRequest) {
27 t.Score = *(ptr.Jobname)
29 t.Params = o.MapFromProtoJobParameters(ptr.Parameters)