ports

package
v0.0.0-...-c72a8c7 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookHandler

type BookHandler interface {
	AddBook(c echo.Context) error
	GetAllBooks(c echo.Context) error
	UpdateBook(c echo.Context) error
	DeleteBook(c echo.Context) error
}

type BookRepository

type BookRepository interface {
	Store(book *domain.Book) error
	Fetch() ([]domain.Book, error)
	Update(id int, book *domain.Book) error
	Delete(id int) error
}

type BookService

type BookService interface {
	Store(book *domain.Book) error
	Fetch() ([]domain.Book, error)
	Update(id int, book *domain.Book) error
	Delete(id int) error
}

Jump to

Keyboard shortcuts

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