service

package
v1.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2018 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(str taskStore.Store) (*Client, error)

func (*Client) CreateTask

func (c *Client) CreateTask(ctx context.Context, create *task.TaskCreate) (*task.Task, error)

func (*Client) DeleteTask

func (c *Client) DeleteTask(ctx context.Context, id string) error

func (*Client) GetTask

func (c *Client) GetTask(ctx context.Context, id string) (*task.Task, error)

func (*Client) ListTasks

func (c *Client) ListTasks(ctx context.Context, filter *task.TaskFilter, pagination *page.Pagination) (task.Tasks, error)

func (*Client) UpdateTask

func (c *Client) UpdateTask(ctx context.Context, id string, update *task.TaskUpdate) (*task.Task, error)

type Service

type Service struct {
	*serviceService.Authenticated
	// contains filtered or unexported fields
}

func New

func New(prefix string) (*Service, error)

func (*Service) Initialize

func (s *Service) Initialize() error

func (*Service) Status

func (s *Service) Status() *service.Status

func (*Service) TaskClient

func (s *Service) TaskClient() task.Client

func (*Service) TaskStore

func (s *Service) TaskStore() store.Store

func (*Service) Terminate

func (s *Service) Terminate()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL