client

package
v0.0.0-...-e0cbe86 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 10 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 interface {
	GetAllTasks() (*[]datastruct.Task, error)
	CreateTask(*datastruct.Task) (*int64, error)
	UpdateTask(*datastruct.Task) (*datastruct.Task, error)
	DeleteTask(int64) error

	GetAllBoards() (*[]datastruct.Board, error)
	CreateBoard(*datastruct.Board) (*int64, error)
}

func New

func New(c config.Config) (Client, error)

type LocalHost

type LocalHost struct {
	service.TaskService
	service.BoardService
}

type RemoteHost

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

func (*RemoteHost) CreateBoard

func (r *RemoteHost) CreateBoard(task *datastruct.Board) (*int64, error)

func (*RemoteHost) CreateTask

func (r *RemoteHost) CreateTask(task *datastruct.Task) (*int64, error)

func (*RemoteHost) DeleteTask

func (r *RemoteHost) DeleteTask(id int64) error

func (*RemoteHost) GetAllBoards

func (r *RemoteHost) GetAllBoards() (*[]datastruct.Board, error)

func (*RemoteHost) GetAllTasks

func (r *RemoteHost) GetAllTasks() (*[]datastruct.Task, error)

func (*RemoteHost) UpdateTask

func (r *RemoteHost) UpdateTask(task *datastruct.Task) (*datastruct.Task, error)

Jump to

Keyboard shortcuts

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