Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TitleAssociations ¶
type TitleAssociations interface { TitleAnime() titleanime.TitleAnimeService TitleEpisode() titleepisode.TitleEpisodeService TitleReview() titlereview.TitleReviewService XDCC() xdcc.XDCCService Anime() anime.AnimeService }
func NewTitleAssociations ¶
func NewTitleAssociations( titleAnime titleanime.TitleAnimeService, titleEpisode titleepisode.TitleEpisodeService, titleReview titlereview.TitleReviewService, xdcc xdcc.XDCCService, anime anime.AnimeService, ) TitleAssociations
type TitleService ¶
type TitleService interface { Create(ctx context.Context, arg params.InsertTitleParamsItem) (*domain.Title, error) CreateMany(ctx context.Context, arg params.InsertTitleParams) ([]*domain.Title, error) First(ctx context.Context, arg params.FirstTitleParams) (*domain.Title, error) Filter(ctx context.Context, arg params.FilterTitleParams) ([]*domain.Title, error) Count(ctx context.Context, arg params.CountTitleParams) (int64, error) Update(ctx context.Context, arg params.UpdateTitleParams) (int64, error) Delete(ctx context.Context, arg params.DeleteTitleParams) (int64, error) SoftDelete(ctx context.Context, arg params.SoftDeleteTitleParams) (int64, error) Review(ctx context.Context, arg params.ReviewTitleParams) (*domain.Title, error) LinkWithAnime(ctx context.Context, title *domain.Title, animes []*domain.Anime) ([]*domain.TitleAnime, error) DeleteUnused(ctx context.Context) (int64, error) Associations() TitleAssociations }
func NewTitleService ¶
func NewTitleService( querier database.QuerierExtended, cacher cacher.Cacher, associations TitleAssociations, ) TitleService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.