Documentation ¶
Index ¶
- func CountByStudioID(ctx context.Context, r CountQueryer, id 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 CountQueryer
- 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 NameFinderCreator
- type NameFinderCreatorUpdater
- type Queryer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountByStudioID ¶ added in v0.19.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 CountQueryer ¶ added in v0.19.0
type CountQueryer interface {
QueryCount(ctx context.Context, galleryFilter *models.PerformerFilterType, findFilter *models.FindFilterType) (int, error)
}
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 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 NameFinderCreator interface { FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Performer, error) Query(ctx context.Context, performerFilter *models.PerformerFilterType, findFilter *models.FindFilterType) ([]*models.Performer, int, error) Create(ctx context.Context, newPerformer *models.Performer) error }
type NameFinderCreatorUpdater ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.