infrastructure

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TodoService

type TodoService struct{}

TodoService service definition

func (*TodoService) AddTodo

func (ts *TodoService) AddTodo(_ context.Context, _ string, task string) (*domain.Todo, error)

AddTodo mutation adds an entry to the list

func (*TodoService) TodoDone

func (ts *TodoService) TodoDone(_ context.Context, todoID string, done bool) (*domain.Todo, error)

TodoDone marks a task as finished

func (*TodoService) Todos

func (ts *TodoService) Todos(_ context.Context, _ string) ([]*domain.Todo, error)

Todos returns a list of mocked todos

Jump to

Keyboard shortcuts

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