performer

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountByAppearsWith added in v0.21.0

func CountByAppearsWith(ctx context.Context, r models.PerformerQueryer, id int) (int, error)

func CountByStudioID added in v0.19.0

func CountByStudioID(ctx context.Context, r models.PerformerQueryer, id int, depth *int) (int, error)

func CountByTagID added in v0.22.0

func CountByTagID(ctx context.Context, r models.PerformerQueryer, id int, depth *int) (int, error)

func GetIDs

func GetIDs(performers []*models.Performer) []int

func GetNames

func GetNames(performers []*models.Performer) []string

func ToJSON

ToJSON converts a Performer object into its JSON equivalent.

func ValidateDeathDate added in v0.7.0

func ValidateDeathDate(performer *models.Performer, birthdate *string, deathDate *string) error

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) Create

func (i *Importer) Create(ctx context.Context) (*int, error)

func (*Importer) FindExistingID

func (i *Importer) FindExistingID(ctx context.Context) (*int, error)

func (*Importer) Name

func (i *Importer) Name() string

func (*Importer) PostImport

func (i *Importer) PostImport(ctx context.Context, id int) error

func (*Importer) PreImport

func (i *Importer) PreImport(ctx context.Context) error

func (*Importer) Update

func (i *Importer) Update(ctx context.Context, id int) error

type ImporterReaderWriter added in v0.23.0

type ImporterReaderWriter interface {
	models.PerformerCreatorUpdater
	models.PerformerQueryer
}

Jump to

Keyboard shortcuts

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