title

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

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
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL