Versions in this module Expand all Collapse all v0 v0.0.1 Jun 7, 2024 Changes in this version + var ErrUninitializedBuffer = errors.New("uninitialized buffer") + type BannerService interface + Count func(ctx context.Context, arg params.CountBannerParams) (int64, error) + Create func(ctx context.Context, arg params.InsertBannerParamsItem) (*domain.Banner, error) + CreateFromReader func(ctx context.Context, arg params.CreateFromReaderImageParams) (*domain.Banner, error) + CreateMany func(ctx context.Context, arg params.InsertBannerParams) ([]*domain.Banner, error) + Delete func(ctx context.Context, arg params.DeleteBannerParams) (int64, error) + DeleteUnused func(ctx context.Context) (int64, error) + Filter func(ctx context.Context, arg params.FilterBannerParams) ([]*domain.Banner, error) + First func(ctx context.Context, arg params.FirstBannerParams) (*domain.Banner, error) + Update func(ctx context.Context, arg params.UpdateBannerParams) (int64, error) + func NewBannerService(querier database.QuerierExtended, cacher cacher.Cacher, fs *fs.FileSystem) BannerService + type ImageService interface + Banner func() BannerService + DeleteUnused func(ctx context.Context) (*domain.UnusedImages, error) + Poster func() PosterService + Processor func() ProcessorService + Thumbnail func() ThumbnailService + func NewImageService(banner BannerService, poster PosterService, thumbnail ThumbnailService, ...) ImageService + type PosterService interface + Count func(ctx context.Context, arg params.CountPosterParams) (int64, error) + Create func(ctx context.Context, arg params.InsertPosterParamsItem) (*domain.Poster, error) + CreateFromReader func(ctx context.Context, arg params.CreateFromReaderImageParams) (*domain.Poster, error) + CreateMany func(ctx context.Context, arg params.InsertPosterParams) ([]*domain.Poster, error) + Delete func(ctx context.Context, arg params.DeletePosterParams) (int64, error) + DeleteUnused func(ctx context.Context) (int64, error) + Filter func(ctx context.Context, arg params.FilterPosterParams) ([]*domain.Poster, error) + First func(ctx context.Context, arg params.FirstPosterParams) (*domain.Poster, error) + Update func(ctx context.Context, arg params.UpdatePosterParams) (int64, error) + func NewPosterService(querier database.QuerierExtended, cacher cacher.Cacher, fs *fs.FileSystem) PosterService + type ProcessorService interface + DominantColour func(ctx context.Context, reader io.Reader) *string + ReadImage func(ctx context.Context, uri string) (imageBytes []byte, err error) + func NewProcessorService() ProcessorService + type ThumbnailService interface + Count func(ctx context.Context, arg params.CountThumbnailParams) (int64, error) + Create func(ctx context.Context, arg params.InsertThumbnailParamsItem) (*domain.Thumbnail, error) + CreateFromReader func(ctx context.Context, arg params.CreateFromReaderImageParams) (*domain.Thumbnail, error) + CreateMany func(ctx context.Context, arg params.InsertThumbnailParams) ([]*domain.Thumbnail, error) + Delete func(ctx context.Context, arg params.DeleteThumbnailParams) (int64, error) + DeleteUnused func(ctx context.Context) (int64, error) + Filter func(ctx context.Context, arg params.FilterThumbnailParams) ([]*domain.Thumbnail, error) + First func(ctx context.Context, arg params.FirstThumbnailParams) (*domain.Thumbnail, error) + Update func(ctx context.Context, arg params.UpdateThumbnailParams) (int64, error) + func NewThumbnailService(querier database.QuerierExtended, cacher cacher.Cacher, fs *fs.FileSystem) ThumbnailService