service

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo interface {
	Create(ctx context.Context, doc models.Todo) (models.Todo, error)
	List(ctx context.Context, query models.TodoQuery) ([]models.Todo, error)
}

Todo is interface for todo service

func NewTodo

func NewTodo(
	todoRepo repository.TodoRepo,
	validator *validator.Validate,
) Todo

NewTodo initializes todo service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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