Newer
Older
// Code generated by goa v3.7.0, DO NOT EDIT.
//
// taskList service
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
package tasklist
import (
"context"
)
// TaskList service provides endpoints to work with task lists.
type Service interface {
// Create a task list and corresponding tasks and put them in respective queues
// for execution.
Create(context.Context, *CreateTaskListRequest) (res *CreateTaskListResult, err error)
// TaskListResult retrieves a taskList result containing all tasks' unique IDs
// and statuses from the Cache service.
TaskListResult(context.Context, *TaskListResultRequest) (res *TaskListStatus, err error)
}
// ServiceName is the name of the service as defined in the design. This is the
// same value that is set in the endpoint request contexts under the ServiceKey
// key.
const ServiceName = "taskList"
// MethodNames lists the service method names as defined in the design. These
// are the same values that are set in the endpoint request contexts under the
// MethodKey key.
var MethodNames = [2]string{"Create", "TaskListResult"}
// CreateTaskListRequest is the payload type of the taskList service Create
// method.
type CreateTaskListRequest struct {
// TaskList name.
TaskListName string
// Data contains JSON payload that will be used for taskList execution.
Data interface{}
// Cache key namespace.
CacheNamespace *string
// Cache key scope.
CacheScope *string
}
// CreateTaskListResult is the result type of the taskList service Create
// method.
type CreateTaskListResult struct {
// Unique taskList identifier.
TaskListID string
}
// Unique group identifier.
ID *string
// Current status of the group
Status *string
}
// TaskListResultRequest is the payload type of the taskList service
// TaskListResult method.
type TaskListResultRequest struct {
// Unique taskList identifier.
TaskListID string
}
// TaskListStatus is the result type of the taskList service TaskListResult
// Unique taskList identifier.
ID string
// Current status of the taskList
Status string
// Unique task identifier.
ID *string
// Current status of the task
Status *string
}