Documentation ¶
Index ¶
- type AuthorStore
- type BookStore
- func (s *BookStore) Book(id uuid.UUID) (types.Book, error)
- func (s *BookStore) BooksByAuthor(authorID uuid.UUID) ([]types.Book, error)
- func (s *BookStore) BooksWithAuthors() ([]types.BookInfo, error)
- func (s *BookStore) CreateBook(b *types.Book) error
- func (s *BookStore) DeleteBook(id uuid.UUID) error
- func (s *BookStore) UpdateBook(b *types.Book) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorStore ¶
func (*AuthorStore) AllAuthors ¶
func (s *AuthorStore) AllAuthors() ([]types.Author, error)
func (*AuthorStore) CreateAuthor ¶
func (s *AuthorStore) CreateAuthor(a *types.Author) error
func (*AuthorStore) DeleteAuthor ¶
func (s *AuthorStore) DeleteAuthor(id uuid.UUID) error
func (*AuthorStore) UpdateAuthor ¶
func (s *AuthorStore) UpdateAuthor(a *types.Author) error
Click to show internal directories.
Click to hide internal directories.