Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anime ¶
type Anime struct { ID int64 `json:"id"` Title string `json:"title"` AlternativeTitles alternativeTitles `json:"alternative_titles"` Picture string `json:"picture"` StartDate date `json:"start_date"` EndDate date `json:"end_date"` Synopsis string `json:"synopsis"` Background string `json:"background"` NSFW bool `json:"nsfw"` Type entity.Type `json:"type"` Status entity.Status `json:"status"` Episode episode `json:"episode"` Season *season `json:"season"` Broadcast *broadcast `json:"broadcast"` Source entity.Source `json:"source"` Rating entity.Rating `json:"rating"` Mean float64 `json:"mean"` Rank int `json:"rank"` Popularity int `json:"popularity"` Member int `json:"member"` Voter int `json:"voter"` Stats stats `json:"stats"` Genres []genre `json:"genres"` Pictures []string `json:"pictures"` Related []related `json:"related"` Studios []studio `json:"studio"` UpdatedAt time.Time `json:"updated_at"` }
Anime is anime model.
type Service ¶
type Service interface { GetAnimeByID(ctx context.Context, id int64) (*Anime, int, error) GetMalAnimeByID(ctx context.Context, id int) (*mal.Anime, int, error) ConsumeMessage(ctx context.Context, msg entity.Message) error QueueOldReleasingAnime(ctx context.Context, limit int) (int, int, error) QueueOldFinishedAnime(ctx context.Context, limit int) (int, int, error) QueueOldNotYetAnime(ctx context.Context, limit int) (int, int, error) QueueMissingAnime(ctx context.Context, limit int) (int, int, error) }
Service contains functions for service.
func New ¶
func New( anime animeRepository.Repository, genre genreRepository.Repository, studio studioRepository.Repository, emptyID emptyIDRepository.Repository, publisher publisherRepository.Repository, mal malRepository.Repository, ) Service
New to create new service.
Click to show internal directories.
Click to hide internal directories.