animeaggregator

package
v0.0.0-...-792f9ae Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePaginationResponse

func CreatePaginationResponse(
	page int64,
	elements int64,
	count int64,
) *grpc_animeaggregator_v1.PaginationResponse

func NewGRPCService

func NewGRPCService(
	animeMappingSvc animemapping.Service,
	animeSvc anime.Service,
	animeAggregatorSvc Service,
) grpc_animeaggregator_v1.AnimeAggregatorServiceServer

Types

type Service

type Service interface {
	Refresh(ctx context.Context) (*domain.RefreshAnimeAggregatorAggregateResult, error)

	FilterAnime(ctx context.Context, query params.FilterAggregatedAnimeParams) (count int64, animes []*domain.AggregatedAnime, err error)
	ListSeasons(ctx context.Context) ([]enum.Season, error)
	ListFormats(ctx context.Context) ([]enum.Format, error)
	ListStatuses(ctx context.Context) ([]enum.Status, error)
	ListSeasonYears(ctx context.Context) ([]*int, error)
	ListStudios(ctx context.Context) ([]*domain.Studio, error)
	ListGenres(ctx context.Context) ([]*domain.Genre, error)
	ListTags(ctx context.Context) ([]*domain.Tag, error)
}

func NewService

func NewService(
	db database.DB,
	cacher cacher.Cacher,
	animeAggregatorIndexSvc animeaggregatorindex.Service,
	imageProcessorClient imageprocessorclient.Client,
) Service

Jump to

Keyboard shortcuts

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