Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHealthRoutes ¶
func AddHealthRoutes()
Types ¶
type AppConfig ¶
type AppConfig struct {
config.BaseConfig `yaml:",inline"`
}
func LoadConfig ¶
func (AppConfig) GetBaseConfig ¶
func (c AppConfig) GetBaseConfig() config.BaseConfig
type NewBookDTO ¶
type Repository ¶
type Repository interface {
SaveBook(ctx context.Context, tx database.DBTX, book Book) (Book, error)
FindBooks(ctx context.Context, tx database.DBTX, pageRequest database.PageRequest) (database.Page[Book], error)
FindOptionalBookByID(ctx context.Context, tx database.DBTX, id uuid.UUID) (*Book, error)
DeleteBookByID(ctx context.Context, tx database.DBTX, id uuid.UUID) error
}
func NewRepository ¶
func NewRepository() Repository
type Service ¶
type Service interface {
CreateBook(ctx context.Context, newBook NewBookDTO, tx ...database.DBTX) (BookDTO, error)
GetBooks(ctx context.Context, pageRequest database.PageRequest, tx ...database.DBTX) (database.Page[BookDTO], error)
GetBookByID(ctx context.Context, id uuid.UUID, tx ...database.DBTX) (BookDTO, error)
DeleteBookByID(ctx context.Context, id uuid.UUID, tx ...database.DBTX) error
}
func NewService ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.