Documentation
¶
Index ¶
- type AlbumService
- func (service *AlbumService) Create(ctx context.Context, in input.AlbumCreateInput) (output.AlbumCreateOutput, error)
- func (service *AlbumService) Delete(ctx context.Context, in input.AlbumDeleteInput) (output.AlbumDeleteOutput, error)
- func (service *AlbumService) Get(ctx context.Context, in input.AlbumGetInput) (output.AlbumGetOutput, error)
- func (service *AlbumService) List(ctx context.Context, in input.AlbumListInput) (output.AlbumListOutput, error)
- func (service *AlbumService) Update(ctx context.Context, in input.AlbumUpdateInput) (output.AlbumUpdateOutput, error)
- type ErrBadInput
- type ErrNotFound
- type Repositories
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumService ¶
type AlbumService struct {
// contains filtered or unexported fields
}
func NewAlbumService ¶
func NewAlbumService(rdb *sql.DB, repos *Repositories) *AlbumService
func (*AlbumService) Create ¶
func (service *AlbumService) Create(ctx context.Context, in input.AlbumCreateInput) (output.AlbumCreateOutput, error)
func (*AlbumService) Delete ¶
func (service *AlbumService) Delete(ctx context.Context, in input.AlbumDeleteInput) (output.AlbumDeleteOutput, error)
func (*AlbumService) Get ¶
func (service *AlbumService) Get(ctx context.Context, in input.AlbumGetInput) (output.AlbumGetOutput, error)
func (*AlbumService) List ¶
func (service *AlbumService) List(ctx context.Context, in input.AlbumListInput) (output.AlbumListOutput, error)
func (*AlbumService) Update ¶
func (service *AlbumService) Update(ctx context.Context, in input.AlbumUpdateInput) (output.AlbumUpdateOutput, error)
type ErrBadInput ¶
type ErrBadInput struct {
// contains filtered or unexported fields
}
func (ErrBadInput) Error ¶
func (e ErrBadInput) Error() string
func (ErrBadInput) Unwap ¶
func (e ErrBadInput) Unwap() error
type ErrNotFound ¶
type ErrNotFound struct {
// contains filtered or unexported fields
}
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
func (ErrNotFound) Unwrap ¶
func (e ErrNotFound) Unwrap() error
type Repositories ¶
type Repositories struct {
Album rdb.AlbumRepository
}
Click to show internal directories.
Click to hide internal directories.