match

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathToGalleries

func PathToGalleries(name string, paths []string, galleryReader models.GalleryReader) ([]*models.Gallery, error)

func PathToImages

func PathToImages(name string, paths []string, imageReader models.ImageReader) ([]*models.Image, error)

func PathToPerformers

func PathToPerformers(path string, reader models.PerformerReader, cache *Cache) ([]*models.Performer, error)

func PathToScenes

func PathToScenes(name string, paths []string, sceneReader models.SceneReader) ([]*models.Scene, error)

func PathToStudio added in v0.12.0

func PathToStudio(path string, reader models.StudioReader, cache *Cache) (*models.Studio, error)

PathToStudio returns the Studio that matches the given path. Where multiple matching studios are found, the one that matches the latest position in the path is returned.

func PathToTags

func PathToTags(path string, reader models.TagReader, cache *Cache) ([]*models.Tag, error)

func ScrapedMovie

func ScrapedMovie(qb models.MovieReader, m *models.ScrapedMovie) error

ScrapedMovie matches the provided movie with the movies in the database and sets the ID field if one is found.

func ScrapedPerformer

func ScrapedPerformer(qb models.PerformerReader, p *models.ScrapedPerformer, stashBoxEndpoint *string) error

ScrapedPerformer matches the provided performer with the performers in the database and sets the ID field if one is found.

func ScrapedStudio

func ScrapedStudio(qb models.StudioReader, s *models.ScrapedStudio, stashBoxEndpoint *string) error

ScrapedStudio matches the provided studio with the studios in the database and sets the ID field if one is found.

func ScrapedTag

func ScrapedTag(qb models.TagReader, s *models.ScrapedTag) error

ScrapedTag matches the provided tag with the tags in the database and sets the ID field if one is found.

Types

type Cache added in v0.14.0

type Cache struct {
	// contains filtered or unexported fields
}

Cache is used to cache queries that should not change across an autotag process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳