services

package
v0.0.0-...-3956a53 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: ISC Imports: 5 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 interface {
	GetList() ([]models.Todo, error)
	Create(todo models.Todo) (models.Todo, error)
	Complete(id string) error
	Delete(id string) error
}

func NewTodoService

func NewTodoService() TodoService

type TodoServiceImpl

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

func (*TodoServiceImpl) Complete

func (service *TodoServiceImpl) Complete(id string) error

func (*TodoServiceImpl) Create

func (service *TodoServiceImpl) Create(d models.Todo) (models.Todo, error)

func (*TodoServiceImpl) Delete

func (service *TodoServiceImpl) Delete(id string) error

func (*TodoServiceImpl) GetList

func (service *TodoServiceImpl) GetList() ([]models.Todo, error)

Jump to

Keyboard shortcuts

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