Documentation ¶
Index ¶
- func GetIDs(performers []*models.Performer) []int
- func GetNames(performers []*models.Performer) []string
- func ToJSON(ctx context.Context, reader ImageStashIDGetter, performer *models.Performer) (*jsonschema.Performer, error)
- func ValidateDeathDate(performer *models.Performer, birthdate *string, deathDate *string) error
- type ImageStashIDGetter
- 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 NameFinderCreator
- type NameFinderCreatorUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToJSON ¶
func ToJSON(ctx context.Context, reader ImageStashIDGetter, performer *models.Performer) (*jsonschema.Performer, error)
ToJSON converts a Performer object into its JSON equivalent.
Types ¶
type ImageStashIDGetter ¶ added in v0.17.0
type Importer ¶
type Importer struct { ReaderWriter NameFinderCreatorUpdater TagWriter tag.NameFinderCreator Input jsonschema.Performer MissingRefBehaviour models.ImportMissingRefEnum ID int // contains filtered or unexported fields }
func (*Importer) FindExistingID ¶
type NameFinderCreator ¶ added in v0.17.0
type NameFinderCreatorUpdater ¶ added in v0.17.0
type NameFinderCreatorUpdater interface { NameFinderCreator UpdateFull(ctx context.Context, updatedPerformer models.Performer) (*models.Performer, error) UpdateTags(ctx context.Context, performerID int, tagIDs []int) error UpdateImage(ctx context.Context, performerID int, image []byte) error UpdateStashIDs(ctx context.Context, performerID int, stashIDs []models.StashID) error }
Click to show internal directories.
Click to hide internal directories.