service

package
v0.0.0-...-d2cdecb Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBookService

func NewBookService(ctx context.Context, registry discovery.Registry, repo repository.BookRepository, logger *logger.Log) (*bookService, error)

Types

type BookService

type BookService interface {
	GetBook(ctx context.Context, req *api.GetBookRequest) (*api.GetBookResponse, error)
	ListBooks(ctx context.Context, req *api.ListBooksRequest) (*api.ListBooksResponse, error)
	CreateBook(ctx context.Context, req *api.CreateBookRequest, title string, author string, categoryId string, description string) (*api.CreateBookResponse, error)
	UpdateBook(ctx context.Context, req *api.UpdateBookRequest, title string, author string, categoryId string, description string) (*api.UpdateBookResponse, error)
	DeleteBook(ctx context.Context, req *api.DeleteBookRequest) (*api.DeleteBookResponse, error)
}

Jump to

Keyboard shortcuts

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