Documentation ¶
Index ¶
- type Client
- func (c Client) FindStashBoxPerformerByID(id string) (*models.ScrapedPerformer, error)
- func (c Client) FindStashBoxPerformerByName(name string) (*models.ScrapedPerformer, error)
- func (c Client) FindStashBoxPerformersByNames(performerIDs []string) ([]*models.StashBoxPerformerQueryResult, error)
- func (c Client) FindStashBoxPerformersByPerformerNames(performerIDs []string) ([][]*models.ScrapedPerformer, error)
- func (c Client) FindStashBoxScenesByFingerprints(sceneIDs []string) ([][]*models.ScrapedScene, error)
- func (c Client) FindStashBoxScenesByFingerprintsFlat(sceneIDs []string) ([]*models.ScrapedScene, error)
- func (c Client) QueryStashBoxPerformer(queryStr string) ([]*models.StashBoxPerformerQueryResult, error)
- func (c Client) QueryStashBoxScene(ctx context.Context, queryStr string) ([]*models.ScrapedScene, error)
- func (c Client) SubmitStashBoxFingerprints(sceneIDs []string, endpoint string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the client interface to a stash-box server instance.
func NewClient ¶
func NewClient(box models.StashBox, txnManager models.TransactionManager) *Client
NewClient returns a new instance of a stash-box client.
func (Client) FindStashBoxPerformerByID ¶ added in v0.7.0
func (c Client) FindStashBoxPerformerByID(id string) (*models.ScrapedPerformer, error)
func (Client) FindStashBoxPerformerByName ¶ added in v0.7.0
func (c Client) FindStashBoxPerformerByName(name string) (*models.ScrapedPerformer, error)
func (Client) FindStashBoxPerformersByNames ¶ added in v0.7.0
func (c Client) FindStashBoxPerformersByNames(performerIDs []string) ([]*models.StashBoxPerformerQueryResult, error)
FindStashBoxPerformersByNames queries stash-box for performers by name
func (Client) FindStashBoxPerformersByPerformerNames ¶ added in v0.10.0
func (c Client) FindStashBoxPerformersByPerformerNames(performerIDs []string) ([][]*models.ScrapedPerformer, error)
func (Client) FindStashBoxScenesByFingerprints ¶
func (c Client) FindStashBoxScenesByFingerprints(sceneIDs []string) ([][]*models.ScrapedScene, error)
FindStashBoxScenesByFingerprints queries stash-box for scenes using every scene's MD5/OSHASH checksum, or PHash, and returns results in the same order as the input slice.
func (Client) FindStashBoxScenesByFingerprintsFlat ¶ added in v0.10.0
func (c Client) FindStashBoxScenesByFingerprintsFlat(sceneIDs []string) ([]*models.ScrapedScene, error)
FindStashBoxScenesByFingerprintsFlat queries stash-box for scenes using every scene's MD5/OSHASH checksum, or PHash, and returns results a flat slice.
func (Client) QueryStashBoxPerformer ¶ added in v0.7.0
func (c Client) QueryStashBoxPerformer(queryStr string) ([]*models.StashBoxPerformerQueryResult, error)
QueryStashBoxPerformer queries stash-box for performers using a query string.
func (Client) QueryStashBoxScene ¶
func (c Client) QueryStashBoxScene(ctx context.Context, queryStr string) ([]*models.ScrapedScene, error)
QueryStashBoxScene queries stash-box for scenes using a query string.