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) }
Click to show internal directories.
Click to hide internal directories.