ingesters

package
v0.0.0-...-63997f1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenreIngester

type GenreIngester struct {
	// contains filtered or unexported fields
}

func NewGenreIngest

func NewGenreIngest(c *client.Client, token string, logger *slog.Logger) *GenreIngester

func (*GenreIngester) Converter

func (i *GenreIngester) Converter(genre string) (int, bool)

func (*GenreIngester) Ingest

func (i *GenreIngester) Ingest(genres []string) error

type MoviesIngester

type MoviesIngester struct {
	// contains filtered or unexported fields
}

func NewMovieIngester

func NewMovieIngester(c *client.Client, token string, genreIngesterConverter func(string) (int, bool), starIngesterConverter func(string) (int, bool), logger *slog.Logger) *MoviesIngester

func (*MoviesIngester) Ingest

func (i *MoviesIngester) Ingest(movies map[string]*models.Movie, casts map[string]*models.Cast) error

type StarIngester

type StarIngester struct {
	// contains filtered or unexported fields
}

func NewStarIngester

func NewStarIngester(c *client.Client, token string, logger *slog.Logger) *StarIngester

func (*StarIngester) Converter

func (i *StarIngester) Converter(imdbID string) (int, bool)

func (*StarIngester) Ingest

func (i *StarIngester) Ingest(stars map[string]*models.Star, bios map[string]*models.Bio) error

Jump to

Keyboard shortcuts

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