animemapping

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterAnimeMappingParams

type FilterAnimeMappingParams struct {
	IDs      []uuid.UUID         `json:"ids,omitempty"`
	Provider *enum.AnimeProvider `json:"providers,omitempty"`
}

Params

type PopulateMappingResult

type PopulateMappingResult struct {
	Created map[string]int64 `json:"created,omitempty"`
	Updated map[string]int64 `json:"updated,omitempty"`
}

type Service

type Service interface {
	PopulateMappings(ctx context.Context) (result *PopulateMappingResult, err error)
	Filter(ctx context.Context, param *FilterAnimeMappingParams) (nodes []*mappingsource.MappingNode, err error)
}

func NewService

func NewService(
	db database.DB,
	redisCacher *redis.RedisCacher,
	redisTTL configmodels.RedisKeyTTL,
	mappingSource mappingsource.Source,
) Service

Jump to

Keyboard shortcuts

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