Skip to content
Snippets Groups Projects
service.go 2.29 KiB
Newer Older
  • Learn to ignore specific revisions
  • // 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 {
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	// Create a task list and corresponding tasks and put them in respective queues
    	// for execution.
    
    	Create(context.Context, *CreateTaskListRequest) (res *CreateTaskListResult, err error)
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	// TaskListResult retrieves a taskList result containing all tasks' unique IDs
    	// and statuses from the Cache service.
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	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.
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    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
    }
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    type GroupStatus struct {
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	// Unique group identifier.
    	ID *string
    	// Current status of the group
    	Status *string
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	// Array of TaskStatus
    	Tasks []*TaskStatus
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    }
    
    // TaskListResultRequest is the payload type of the taskList service
    // TaskListResult method.
    type TaskListResultRequest struct {
    	// Unique taskList identifier.
    	TaskListID string
    }
    
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    // TaskListStatus is the result type of the taskList service TaskListResult
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    // method.
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    type TaskListStatus struct {
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	// Unique taskList identifier.
    	ID string
    	// Current status of the taskList
    	Status string
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	// Array of GroupStatus
    	Groups []*GroupStatus
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    type TaskStatus struct {
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	// Unique task identifier.
    	ID *string
    	// Current status of the task
    	Status *string
    }