animeaggregatorindex

package
v0.0.0-...-ee63b18 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedAnimeDocument

type AggregatedAnimeDocument struct {
	Format     *enum.Format                  `json:"format,omitempty"`
	Season     *enum.Season                  `json:"season,omitempty"`
	SeasonYear *int                          `json:"seasonYear,omitempty"`
	Score      *int                          `json:"score,omitempty"`
	StartDate  *int64                        `json:"startDate,omitempty"`
	EndDate    *int64                        `json:"endDate,omitempty"`
	Status     *enum.Status                  `json:"status,omitempty"`
	Providers  map[enum.AnimeProvider]string `json:"providers,omitempty"`
	Titles     []string                      `json:"titles,omitempty"`
	Tags       []string                      `json:"tags,omitempty"`
	Genres     []string                      `json:"genres,omitempty"`
	Studios    []string                      `json:"studios,omitempty"`
	ID         uuid.UUID                     `json:"id"`
}

type Service

type Service interface {
	Create(ctx context.Context) (err error)
	Import(ctx context.Context, aggregates []*domain.AggregatedAnime) (err error)
	Filter(ctx context.Context, query params.FilterAggregatedAnimeParams) (total int64, ids uuid.UUIDs, err error)
}

func NewService

func NewService(
	typesenseClient *typesense.Client,
) Service

Jump to

Keyboard shortcuts

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