Documentation ¶
Index ¶
- func CountByStudioID(ctx context.Context, r models.MovieQueryer, id int, depth *int) (int, error)
- func ToJSON(ctx context.Context, reader ImageGetter, studioReader models.StudioGetter, ...) (*jsonschema.Movie, error)
- type ImageGetter
- type Importer
- func (i *Importer) Create(ctx context.Context) (*int, error)
- func (i *Importer) FindExistingID(ctx context.Context) (*int, error)
- func (i *Importer) Name() string
- func (i *Importer) PostImport(ctx context.Context, id int) error
- func (i *Importer) PreImport(ctx context.Context) error
- func (i *Importer) Update(ctx context.Context, id int) error
- type ImporterReaderWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountByStudioID ¶ added in v0.22.0
func ToJSON ¶
func ToJSON(ctx context.Context, reader ImageGetter, studioReader models.StudioGetter, movie *models.Movie) (*jsonschema.Movie, error)
ToJSON converts a Movie into its JSON equivalent.
Types ¶
type ImageGetter ¶ added in v0.17.0
type Importer ¶
type Importer struct { ReaderWriter ImporterReaderWriter StudioWriter models.StudioFinderCreator Input jsonschema.Movie MissingRefBehaviour models.ImportMissingRefEnum // contains filtered or unexported fields }
func (*Importer) FindExistingID ¶
Click to show internal directories.
Click to hide internal directories.