Newer
Older
// Code generated by goa v3.7.0, DO NOT EDIT.
//
// taskList client
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
package tasklist
import (
"context"
goa "goa.design/goa/v3/pkg"
)
// Client is the "taskList" service client.
type Client struct {
CreateEndpoint goa.Endpoint
TaskListResultEndpoint goa.Endpoint
}
// NewClient initializes a "taskList" service client given the endpoints.
func NewClient(create, taskListResult goa.Endpoint) *Client {
CreateEndpoint: create,
TaskListResultEndpoint: taskListResult,
}
}
// Create calls the "Create" endpoint of the "taskList" service.
func (c *Client) Create(ctx context.Context, p *CreateTaskListRequest) (res *CreateTaskListResult, err error) {
var ires interface{}
ires, err = c.CreateEndpoint(ctx, p)
if err != nil {
return
}
return ires.(*CreateTaskListResult), nil
}
// TaskListResult calls the "TaskListResult" endpoint of the "taskList" service.
func (c *Client) TaskListResult(ctx context.Context, p *TaskListResultRequest) (res *TaskListStatus, err error) {
var ires interface{}
ires, err = c.TaskListResultEndpoint(ctx, p)
if err != nil {
return
}