Documentation ¶
Index ¶
- func CountByAppearsWith(ctx context.Context, r models.PerformerQueryer, id int) (int, error)
- func CountByStudioID(ctx context.Context, r models.PerformerQueryer, id int, depth *int) (int, error)
- func CountByTagID(ctx context.Context, r models.PerformerQueryer, id int, depth *int) (int, error)
- func GetIDs(performers []*models.Performer) []int
- func GetNames(performers []*models.Performer) []string
- func ToJSON(ctx context.Context, reader ImageAliasStashIDGetter, ...) (*jsonschema.Performer, error)
- func ValidateDeathDate(performer *models.Performer, birthdate *string, deathDate *string) error
- type ImageAliasStashIDGetter
- 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 CountByAppearsWith ¶ added in v0.21.0
func CountByStudioID ¶ added in v0.19.0
func CountByTagID ¶ added in v0.22.0
func ToJSON ¶
func ToJSON(ctx context.Context, reader ImageAliasStashIDGetter, performer *models.Performer) (*jsonschema.Performer, error)
ToJSON converts a Performer object into its JSON equivalent.
Types ¶
type ImageAliasStashIDGetter ¶ added in v0.19.0
type ImageAliasStashIDGetter interface { GetImage(ctx context.Context, performerID int) ([]byte, error) models.AliasLoader models.StashIDLoader }
type Importer ¶
type Importer struct { ReaderWriter ImporterReaderWriter TagWriter models.TagFinderCreator Input jsonschema.Performer MissingRefBehaviour models.ImportMissingRefEnum ID int // contains filtered or unexported fields }
func (*Importer) FindExistingID ¶
type ImporterReaderWriter ¶ added in v0.23.0
type ImporterReaderWriter interface { models.PerformerCreatorUpdater models.PerformerQueryer }
Click to show internal directories.
Click to hide internal directories.