interfaces

package
v0.0.0-...-481333c Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presenters

type Presenters interface {
	JSON(w http.ResponseWriter, r *http.Request, v interface{})
	Error(w http.ResponseWriter, r *http.Request, err error)
}

type TodoRepository

type TodoRepository interface {
	Find(ctx context.Context) ([]entities.Todo, error)
	FindByID(ctx context.Context, id uint) (entities.Todo, error)
	Create(ctx context.Context, todo *entities.Todo) error
	Update(ctx context.Context, id uint, updateData entities.Todo) error
	Delete(ctx context.Context, id uint) error
}

type TodoService

type TodoService interface {
	Find(ctx context.Context) ([]entities.Todo, error)
	FindByID(ctx context.Context, id uint) (entities.Todo, error)
	Create(ctx context.Context, name string) (entities.Todo, error)
	Update(ctx context.Context, id uint, name string) error
	Delete(ctx context.Context, id uint) error
}

Jump to

Keyboard shortcuts

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