Documentation ¶
Index ¶
- func ImageQueryResult(images []*models.Image, count int) *models.ImageQueryResult
- func NewTxnRepository() models.Repository
- func SceneQueryResult(scenes []*models.Scene, count int) *models.SceneQueryResult
- type GalleryChapterReaderWriter
- func (_m *GalleryChapterReaderWriter) Create(ctx context.Context, newGalleryChapter *models.GalleryChapter) error
- func (_m *GalleryChapterReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *GalleryChapterReaderWriter) Find(ctx context.Context, id int) (*models.GalleryChapter, error)
- func (_m *GalleryChapterReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.GalleryChapter, error)
- func (_m *GalleryChapterReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.GalleryChapter, error)
- func (_m *GalleryChapterReaderWriter) Update(ctx context.Context, updatedGalleryChapter *models.GalleryChapter) error
- func (_m *GalleryChapterReaderWriter) UpdatePartial(ctx context.Context, id int, ...) (*models.GalleryChapter, error)
- type GalleryReaderWriter
- func (_m *GalleryReaderWriter) All(ctx context.Context) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *GalleryReaderWriter) Create(ctx context.Context, newGallery *models.Gallery, fileIDs []file.ID) error
- func (_m *GalleryReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *GalleryReaderWriter) Find(ctx context.Context, id int) (*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByChecksums(ctx context.Context, checksums []string) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByPath(ctx context.Context, path string) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) GetImageIDs(ctx context.Context, galleryID int) ([]int, error)
- func (_m *GalleryReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GalleryReaderWriter) GetSceneIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GalleryReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GalleryReaderWriter) Query(ctx context.Context, galleryFilter *models.GalleryFilterType, ...) ([]*models.Gallery, int, error)
- func (_m *GalleryReaderWriter) QueryCount(ctx context.Context, galleryFilter *models.GalleryFilterType, ...) (int, error)
- func (_m *GalleryReaderWriter) Update(ctx context.Context, updatedGallery *models.Gallery) error
- func (_m *GalleryReaderWriter) UpdateImages(ctx context.Context, galleryID int, imageIDs []int) error
- func (_m *GalleryReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGallery models.GalleryPartial) (*models.Gallery, error)
- type ImageReaderWriter
- func (_m *ImageReaderWriter) All(ctx context.Context) ([]*models.Image, error)
- func (_m *ImageReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *ImageReaderWriter) CountByGalleryID(ctx context.Context, galleryID int) (int, error)
- func (_m *ImageReaderWriter) Create(ctx context.Context, newImage *models.ImageCreateInput) error
- func (_m *ImageReaderWriter) DecrementOCounter(ctx context.Context, id int) (int, error)
- func (_m *ImageReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *ImageReaderWriter) Find(ctx context.Context, id int) (*models.Image, error)
- func (_m *ImageReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Image, error)
- func (_m *ImageReaderWriter) GetGalleryIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *ImageReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *ImageReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *ImageReaderWriter) IncrementOCounter(ctx context.Context, id int) (int, error)
- func (_m *ImageReaderWriter) OCountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *ImageReaderWriter) Query(ctx context.Context, options models.ImageQueryOptions) (*models.ImageQueryResult, error)
- func (_m *ImageReaderWriter) QueryCount(ctx context.Context, imageFilter *models.ImageFilterType, ...) (int, error)
- func (_m *ImageReaderWriter) ResetOCounter(ctx context.Context, id int) (int, error)
- func (_m *ImageReaderWriter) Size(ctx context.Context) (float64, error)
- func (_m *ImageReaderWriter) Update(ctx context.Context, updatedImage *models.Image) error
- func (_m *ImageReaderWriter) UpdatePartial(ctx context.Context, id int, partial models.ImagePartial) (*models.Image, error)
- type MovieReaderWriter
- func (_m *MovieReaderWriter) All(ctx context.Context) ([]*models.Movie, error)
- func (_m *MovieReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *MovieReaderWriter) CountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *MovieReaderWriter) CountByStudioID(ctx context.Context, studioID int) (int, error)
- func (_m *MovieReaderWriter) Create(ctx context.Context, newMovie *models.Movie) error
- func (_m *MovieReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *MovieReaderWriter) Find(ctx context.Context, id int) (*models.Movie, error)
- func (_m *MovieReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Movie, error)
- func (_m *MovieReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Movie, error)
- func (_m *MovieReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Movie, error)
- func (_m *MovieReaderWriter) FindByStudioID(ctx context.Context, studioID int) ([]*models.Movie, error)
- func (_m *MovieReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Movie, error)
- func (_m *MovieReaderWriter) GetBackImage(ctx context.Context, movieID int) ([]byte, error)
- func (_m *MovieReaderWriter) GetFrontImage(ctx context.Context, movieID int) ([]byte, error)
- func (_m *MovieReaderWriter) HasBackImage(ctx context.Context, movieID int) (bool, error)
- func (_m *MovieReaderWriter) HasFrontImage(ctx context.Context, movieID int) (bool, error)
- func (_m *MovieReaderWriter) Query(ctx context.Context, movieFilter *models.MovieFilterType, ...) ([]*models.Movie, int, error)
- func (_m *MovieReaderWriter) QueryCount(ctx context.Context, movieFilter *models.MovieFilterType, ...) (int, error)
- func (_m *MovieReaderWriter) Update(ctx context.Context, updatedMovie *models.Movie) error
- func (_m *MovieReaderWriter) UpdateBackImage(ctx context.Context, movieID int, backImage []byte) error
- func (_m *MovieReaderWriter) UpdateFrontImage(ctx context.Context, movieID int, frontImage []byte) error
- func (_m *MovieReaderWriter) UpdatePartial(ctx context.Context, id int, updatedMovie models.MoviePartial) (*models.Movie, error)
- type PerformerReaderWriter
- func (_m *PerformerReaderWriter) All(ctx context.Context) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *PerformerReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)
- func (_m *PerformerReaderWriter) Create(ctx context.Context, newPerformer *models.Performer) error
- func (_m *PerformerReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *PerformerReaderWriter) Find(ctx context.Context, id int) (*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)
- func (_m *PerformerReaderWriter) GetImage(ctx context.Context, performerID int) ([]byte, error)
- func (_m *PerformerReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
- func (_m *PerformerReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *PerformerReaderWriter) HasImage(ctx context.Context, performerID int) (bool, error)
- func (_m *PerformerReaderWriter) Query(ctx context.Context, performerFilter *models.PerformerFilterType, ...) ([]*models.Performer, int, error)
- func (_m *PerformerReaderWriter) QueryCount(ctx context.Context, galleryFilter *models.PerformerFilterType, ...) (int, error)
- func (_m *PerformerReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) Update(ctx context.Context, updatedPerformer *models.Performer) error
- func (_m *PerformerReaderWriter) UpdateImage(ctx context.Context, performerID int, image []byte) error
- func (_m *PerformerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedPerformer models.PerformerPartial) (*models.Performer, error)
- type SavedFilterReaderWriter
- func (_m *SavedFilterReaderWriter) All(ctx context.Context) ([]*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) Create(ctx context.Context, obj *models.SavedFilter) error
- func (_m *SavedFilterReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *SavedFilterReaderWriter) Find(ctx context.Context, id int) (*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) FindByMode(ctx context.Context, mode models.FilterMode) ([]*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) FindDefault(ctx context.Context, mode models.FilterMode) (*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) FindMany(ctx context.Context, ids []int, ignoreNotFound bool) ([]*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) SetDefault(ctx context.Context, obj *models.SavedFilter) error
- func (_m *SavedFilterReaderWriter) Update(ctx context.Context, obj *models.SavedFilter) error
- type SceneMarkerReaderWriter
- func (_m *SceneMarkerReaderWriter) All(ctx context.Context) ([]*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *SceneMarkerReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)
- func (_m *SceneMarkerReaderWriter) Create(ctx context.Context, newSceneMarker *models.SceneMarker) error
- func (_m *SceneMarkerReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *SceneMarkerReaderWriter) Find(ctx context.Context, id int) (*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) GetMarkerStrings(ctx context.Context, q *string, sort *string) ([]*models.MarkerStringsResultType, error)
- func (_m *SceneMarkerReaderWriter) GetTagIDs(ctx context.Context, imageID int) ([]int, error)
- func (_m *SceneMarkerReaderWriter) Query(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, ...) ([]*models.SceneMarker, int, error)
- func (_m *SceneMarkerReaderWriter) QueryCount(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, ...) (int, error)
- func (_m *SceneMarkerReaderWriter) Update(ctx context.Context, updatedSceneMarker *models.SceneMarker) error
- func (_m *SceneMarkerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedSceneMarker models.SceneMarkerPartial) (*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) UpdateTags(ctx context.Context, markerID int, tagIDs []int) error
- func (_m *SceneMarkerReaderWriter) Wall(ctx context.Context, q *string) ([]*models.SceneMarker, error)
- type SceneReaderWriter
- func (_m *SceneReaderWriter) All(ctx context.Context) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) CountByMovieID(ctx context.Context, movieID int) (int, error)
- func (_m *SceneReaderWriter) CountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *SceneReaderWriter) CountByStudioID(ctx context.Context, studioID int) (int, error)
- func (_m *SceneReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)
- func (_m *SceneReaderWriter) CountMissingChecksum(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) CountMissingOSHash(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) Create(ctx context.Context, newScene *models.Scene, fileIDs []file.ID) error
- func (_m *SceneReaderWriter) DecrementOCounter(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *SceneReaderWriter) Duration(ctx context.Context) (float64, error)
- func (_m *SceneReaderWriter) Find(ctx context.Context, id int) (*models.Scene, error)
- func (_m *SceneReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByGalleryID(ctx context.Context, performerID int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByMovieID(ctx context.Context, movieID int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByOSHash(ctx context.Context, oshash string) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByPath(ctx context.Context, path string) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindDuplicates(ctx context.Context, distance int, durationDiff float64) ([][]*models.Scene, error)
- func (_m *SceneReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) GetCover(ctx context.Context, sceneID int) ([]byte, error)
- func (_m *SceneReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]*file.VideoFile, error)
- func (_m *SceneReaderWriter) GetGalleryIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *SceneReaderWriter) GetMovies(ctx context.Context, id int) ([]models.MoviesScenes, error)
- func (_m *SceneReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *SceneReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
- func (_m *SceneReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *SceneReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)
- func (_m *SceneReaderWriter) HasCover(ctx context.Context, sceneID int) (bool, error)
- func (_m *SceneReaderWriter) IncrementOCounter(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) IncrementWatchCount(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) OCount(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) OCountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *SceneReaderWriter) PlayCount(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) PlayDuration(ctx context.Context) (float64, error)
- func (_m *SceneReaderWriter) Query(ctx context.Context, options models.SceneQueryOptions) (*models.SceneQueryResult, error)
- func (_m *SceneReaderWriter) QueryCount(ctx context.Context, sceneFilter *models.SceneFilterType, ...) (int, error)
- func (_m *SceneReaderWriter) ResetOCounter(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) SaveActivity(ctx context.Context, id int, resumeTime *float64, playDuration *float64) (bool, error)
- func (_m *SceneReaderWriter) Size(ctx context.Context) (float64, error)
- func (_m *SceneReaderWriter) UniqueScenePlayCount(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) Update(ctx context.Context, updatedScene *models.Scene) error
- func (_m *SceneReaderWriter) UpdateCover(ctx context.Context, sceneID int, cover []byte) error
- func (_m *SceneReaderWriter) UpdatePartial(ctx context.Context, id int, updatedScene models.ScenePartial) (*models.Scene, error)
- func (_m *SceneReaderWriter) Wall(ctx context.Context, q *string) ([]*models.Scene, error)
- type StudioReaderWriter
- func (_m *StudioReaderWriter) All(ctx context.Context) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *StudioReaderWriter) Create(ctx context.Context, input *models.Studio) error
- func (_m *StudioReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *StudioReaderWriter) Find(ctx context.Context, id int) (*models.Studio, error)
- func (_m *StudioReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Studio, error)
- func (_m *StudioReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) FindChildren(ctx context.Context, id int) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)
- func (_m *StudioReaderWriter) GetImage(ctx context.Context, studioID int) ([]byte, error)
- func (_m *StudioReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
- func (_m *StudioReaderWriter) HasImage(ctx context.Context, studioID int) (bool, error)
- func (_m *StudioReaderWriter) Query(ctx context.Context, studioFilter *models.StudioFilterType, ...) ([]*models.Studio, int, error)
- func (_m *StudioReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) Update(ctx context.Context, updatedStudio *models.Studio) error
- func (_m *StudioReaderWriter) UpdateImage(ctx context.Context, studioID int, image []byte) error
- func (_m *StudioReaderWriter) UpdatePartial(ctx context.Context, input models.StudioPartial) (*models.Studio, error)
- type TagReaderWriter
- func (_m *TagReaderWriter) All(ctx context.Context) ([]*models.Tag, error)
- func (_m *TagReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *TagReaderWriter) Create(ctx context.Context, newTag *models.Tag) error
- func (_m *TagReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *TagReaderWriter) Find(ctx context.Context, id int) (*models.Tag, error)
- func (_m *TagReaderWriter) FindAllAncestors(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)
- func (_m *TagReaderWriter) FindAllDescendants(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)
- func (_m *TagReaderWriter) FindByChildTagID(ctx context.Context, childID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Tag, error)
- func (_m *TagReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByParentTagID(ctx context.Context, parentID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindBySceneMarkerID(ctx context.Context, sceneMarkerID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) GetAliases(ctx context.Context, tagID int) ([]string, error)
- func (_m *TagReaderWriter) GetImage(ctx context.Context, tagID int) ([]byte, error)
- func (_m *TagReaderWriter) HasImage(ctx context.Context, tagID int) (bool, error)
- func (_m *TagReaderWriter) Merge(ctx context.Context, source []int, destination int) error
- func (_m *TagReaderWriter) Query(ctx context.Context, tagFilter *models.TagFilterType, ...) ([]*models.Tag, int, error)
- func (_m *TagReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Tag, error)
- func (_m *TagReaderWriter) Update(ctx context.Context, updatedTag *models.Tag) error
- func (_m *TagReaderWriter) UpdateAliases(ctx context.Context, tagID int, aliases []string) error
- func (_m *TagReaderWriter) UpdateChildTags(ctx context.Context, tagID int, parentIDs []int) error
- func (_m *TagReaderWriter) UpdateImage(ctx context.Context, tagID int, image []byte) error
- func (_m *TagReaderWriter) UpdateParentTags(ctx context.Context, tagID int, parentIDs []int) error
- func (_m *TagReaderWriter) UpdatePartial(ctx context.Context, id int, updateTag models.TagPartial) (*models.Tag, error)
- type TxnManager
- func (*TxnManager) AddPostCommitHook(ctx context.Context, hook txn.TxnFunc)
- func (*TxnManager) AddPostRollbackHook(ctx context.Context, hook txn.TxnFunc)
- func (*TxnManager) Begin(ctx context.Context, exclusive bool) (context.Context, error)
- func (*TxnManager) Commit(ctx context.Context) error
- func (*TxnManager) Complete(ctx context.Context)
- func (*TxnManager) IsLocked(err error) bool
- func (*TxnManager) Reset() error
- func (*TxnManager) Rollback(ctx context.Context) error
- func (*TxnManager) WithDatabase(ctx context.Context) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageQueryResult ¶ added in v0.11.0
func ImageQueryResult(images []*models.Image, count int) *models.ImageQueryResult
func NewTxnRepository ¶ added in v0.17.0
func NewTxnRepository() models.Repository
func SceneQueryResult ¶ added in v0.11.0
func SceneQueryResult(scenes []*models.Scene, count int) *models.SceneQueryResult
Types ¶
type GalleryChapterReaderWriter ¶ added in v0.20.0
GalleryChapterReaderWriter is an autogenerated mock type for the GalleryChapterReaderWriter type
func (*GalleryChapterReaderWriter) Create ¶ added in v0.20.0
func (_m *GalleryChapterReaderWriter) Create(ctx context.Context, newGalleryChapter *models.GalleryChapter) error
Create provides a mock function with given fields: ctx, newGalleryChapter
func (*GalleryChapterReaderWriter) Destroy ¶ added in v0.20.0
func (_m *GalleryChapterReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*GalleryChapterReaderWriter) Find ¶ added in v0.20.0
func (_m *GalleryChapterReaderWriter) Find(ctx context.Context, id int) (*models.GalleryChapter, error)
Find provides a mock function with given fields: ctx, id
func (*GalleryChapterReaderWriter) FindByGalleryID ¶ added in v0.20.0
func (_m *GalleryChapterReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.GalleryChapter, error)
FindByGalleryID provides a mock function with given fields: ctx, galleryID
func (*GalleryChapterReaderWriter) FindMany ¶ added in v0.20.0
func (_m *GalleryChapterReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.GalleryChapter, error)
FindMany provides a mock function with given fields: ctx, ids
func (*GalleryChapterReaderWriter) Update ¶ added in v0.20.0
func (_m *GalleryChapterReaderWriter) Update(ctx context.Context, updatedGalleryChapter *models.GalleryChapter) error
Update provides a mock function with given fields: ctx, updatedGalleryChapter
func (*GalleryChapterReaderWriter) UpdatePartial ¶ added in v0.22.0
func (_m *GalleryChapterReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGalleryChapter models.GalleryChapterPartial) (*models.GalleryChapter, error)
UpdatePartial provides a mock function with given fields: ctx, id, updatedGalleryChapter
type GalleryReaderWriter ¶
GalleryReaderWriter is an autogenerated mock type for the GalleryReaderWriter type
func (*GalleryReaderWriter) Count ¶ added in v0.5.0
func (_m *GalleryReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*GalleryReaderWriter) Create ¶
func (_m *GalleryReaderWriter) Create(ctx context.Context, newGallery *models.Gallery, fileIDs []file.ID) error
Create provides a mock function with given fields: ctx, newGallery, fileIDs
func (*GalleryReaderWriter) Destroy ¶ added in v0.5.0
func (_m *GalleryReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*GalleryReaderWriter) Find ¶ added in v0.5.0
Find provides a mock function with given fields: ctx, id
func (*GalleryReaderWriter) FindByChecksum ¶
func (_m *GalleryReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Gallery, error)
FindByChecksum provides a mock function with given fields: ctx, checksum
func (*GalleryReaderWriter) FindByChecksums ¶ added in v0.5.0
func (_m *GalleryReaderWriter) FindByChecksums(ctx context.Context, checksums []string) ([]*models.Gallery, error)
FindByChecksums provides a mock function with given fields: ctx, checksums
func (*GalleryReaderWriter) FindByImageID ¶
func (_m *GalleryReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Gallery, error)
FindByImageID provides a mock function with given fields: ctx, imageID
func (*GalleryReaderWriter) FindByPath ¶
func (_m *GalleryReaderWriter) FindByPath(ctx context.Context, path string) ([]*models.Gallery, error)
FindByPath provides a mock function with given fields: ctx, path
func (*GalleryReaderWriter) FindBySceneID ¶
func (_m *GalleryReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Gallery, error)
FindBySceneID provides a mock function with given fields: ctx, sceneID
func (*GalleryReaderWriter) FindMany ¶
FindMany provides a mock function with given fields: ctx, ids
func (*GalleryReaderWriter) GetImageIDs ¶ added in v0.5.0
GetImageIDs provides a mock function with given fields: ctx, galleryID
func (*GalleryReaderWriter) GetPerformerIDs ¶ added in v0.5.0
GetPerformerIDs provides a mock function with given fields: ctx, relatedID
func (*GalleryReaderWriter) GetSceneIDs ¶ added in v0.5.0
GetSceneIDs provides a mock function with given fields: ctx, relatedID
func (*GalleryReaderWriter) GetTagIDs ¶ added in v0.5.0
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*GalleryReaderWriter) Query ¶ added in v0.5.0
func (_m *GalleryReaderWriter) Query(ctx context.Context, galleryFilter *models.GalleryFilterType, findFilter *models.FindFilterType) ([]*models.Gallery, int, error)
Query provides a mock function with given fields: ctx, galleryFilter, findFilter
func (*GalleryReaderWriter) QueryCount ¶ added in v0.7.0
func (_m *GalleryReaderWriter) QueryCount(ctx context.Context, galleryFilter *models.GalleryFilterType, findFilter *models.FindFilterType) (int, error)
QueryCount provides a mock function with given fields: ctx, galleryFilter, findFilter
func (*GalleryReaderWriter) Update ¶
Update provides a mock function with given fields: ctx, updatedGallery
func (*GalleryReaderWriter) UpdateImages ¶ added in v0.5.0
func (_m *GalleryReaderWriter) UpdateImages(ctx context.Context, galleryID int, imageIDs []int) error
UpdateImages provides a mock function with given fields: ctx, galleryID, imageIDs
func (*GalleryReaderWriter) UpdatePartial ¶ added in v0.5.0
func (_m *GalleryReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGallery models.GalleryPartial) (*models.Gallery, error)
UpdatePartial provides a mock function with given fields: ctx, id, updatedGallery
type ImageReaderWriter ¶
ImageReaderWriter is an autogenerated mock type for the ImageReaderWriter type
func (*ImageReaderWriter) Count ¶ added in v0.5.0
func (_m *ImageReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*ImageReaderWriter) CountByGalleryID ¶ added in v0.5.0
CountByGalleryID provides a mock function with given fields: ctx, galleryID
func (*ImageReaderWriter) Create ¶
func (_m *ImageReaderWriter) Create(ctx context.Context, newImage *models.ImageCreateInput) error
Create provides a mock function with given fields: ctx, newImage
func (*ImageReaderWriter) DecrementOCounter ¶ added in v0.5.0
DecrementOCounter provides a mock function with given fields: ctx, id
func (*ImageReaderWriter) Destroy ¶ added in v0.5.0
func (_m *ImageReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*ImageReaderWriter) Find ¶ added in v0.5.0
Find provides a mock function with given fields: ctx, id
func (*ImageReaderWriter) FindByChecksum ¶
func (_m *ImageReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Image, error)
FindByChecksum provides a mock function with given fields: ctx, checksum
func (*ImageReaderWriter) FindByGalleryID ¶
func (_m *ImageReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Image, error)
FindByGalleryID provides a mock function with given fields: ctx, galleryID
func (*ImageReaderWriter) GetGalleryIDs ¶ added in v0.5.0
GetGalleryIDs provides a mock function with given fields: ctx, relatedID
func (*ImageReaderWriter) GetPerformerIDs ¶ added in v0.5.0
GetPerformerIDs provides a mock function with given fields: ctx, relatedID
func (*ImageReaderWriter) GetTagIDs ¶ added in v0.5.0
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*ImageReaderWriter) IncrementOCounter ¶ added in v0.5.0
IncrementOCounter provides a mock function with given fields: ctx, id
func (*ImageReaderWriter) OCountByPerformerID ¶ added in v0.21.0
OCountByPerformerID provides a mock function with given fields: ctx, performerID
func (*ImageReaderWriter) Query ¶ added in v0.5.0
func (_m *ImageReaderWriter) Query(ctx context.Context, options models.ImageQueryOptions) (*models.ImageQueryResult, error)
Query provides a mock function with given fields: ctx, options
func (*ImageReaderWriter) QueryCount ¶ added in v0.7.0
func (_m *ImageReaderWriter) QueryCount(ctx context.Context, imageFilter *models.ImageFilterType, findFilter *models.FindFilterType) (int, error)
QueryCount provides a mock function with given fields: ctx, imageFilter, findFilter
func (*ImageReaderWriter) ResetOCounter ¶ added in v0.5.0
ResetOCounter provides a mock function with given fields: ctx, id
func (*ImageReaderWriter) Size ¶ added in v0.5.0
func (_m *ImageReaderWriter) Size(ctx context.Context) (float64, error)
Size provides a mock function with given fields: ctx
func (*ImageReaderWriter) Update ¶
Update provides a mock function with given fields: ctx, updatedImage
func (*ImageReaderWriter) UpdatePartial ¶ added in v0.17.0
func (_m *ImageReaderWriter) UpdatePartial(ctx context.Context, id int, partial models.ImagePartial) (*models.Image, error)
UpdatePartial provides a mock function with given fields: ctx, id, partial
type MovieReaderWriter ¶
MovieReaderWriter is an autogenerated mock type for the MovieReaderWriter type
func (*MovieReaderWriter) Count ¶ added in v0.5.0
func (_m *MovieReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*MovieReaderWriter) CountByPerformerID ¶ added in v0.10.0
CountByPerformerID provides a mock function with given fields: ctx, performerID
func (*MovieReaderWriter) CountByStudioID ¶ added in v0.10.0
CountByStudioID provides a mock function with given fields: ctx, studioID
func (*MovieReaderWriter) Destroy ¶ added in v0.5.0
func (_m *MovieReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*MovieReaderWriter) FindByName ¶
func (_m *MovieReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Movie, error)
FindByName provides a mock function with given fields: ctx, name, nocase
func (*MovieReaderWriter) FindByNames ¶
func (_m *MovieReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Movie, error)
FindByNames provides a mock function with given fields: ctx, names, nocase
func (*MovieReaderWriter) FindByPerformerID ¶ added in v0.10.0
func (_m *MovieReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Movie, error)
FindByPerformerID provides a mock function with given fields: ctx, performerID
func (*MovieReaderWriter) FindByStudioID ¶ added in v0.10.0
func (_m *MovieReaderWriter) FindByStudioID(ctx context.Context, studioID int) ([]*models.Movie, error)
FindByStudioID provides a mock function with given fields: ctx, studioID
func (*MovieReaderWriter) GetBackImage ¶
GetBackImage provides a mock function with given fields: ctx, movieID
func (*MovieReaderWriter) GetFrontImage ¶
GetFrontImage provides a mock function with given fields: ctx, movieID
func (*MovieReaderWriter) HasBackImage ¶ added in v0.20.0
HasBackImage provides a mock function with given fields: ctx, movieID
func (*MovieReaderWriter) HasFrontImage ¶ added in v0.21.0
HasFrontImage provides a mock function with given fields: ctx, movieID
func (*MovieReaderWriter) Query ¶ added in v0.5.0
func (_m *MovieReaderWriter) Query(ctx context.Context, movieFilter *models.MovieFilterType, findFilter *models.FindFilterType) ([]*models.Movie, int, error)
Query provides a mock function with given fields: ctx, movieFilter, findFilter
func (*MovieReaderWriter) QueryCount ¶ added in v0.22.0
func (_m *MovieReaderWriter) QueryCount(ctx context.Context, movieFilter *models.MovieFilterType, findFilter *models.FindFilterType) (int, error)
QueryCount provides a mock function with given fields: ctx, movieFilter, findFilter
func (*MovieReaderWriter) Update ¶
Update provides a mock function with given fields: ctx, updatedMovie
func (*MovieReaderWriter) UpdateBackImage ¶ added in v0.20.0
func (_m *MovieReaderWriter) UpdateBackImage(ctx context.Context, movieID int, backImage []byte) error
UpdateBackImage provides a mock function with given fields: ctx, movieID, backImage
func (*MovieReaderWriter) UpdateFrontImage ¶ added in v0.20.0
func (_m *MovieReaderWriter) UpdateFrontImage(ctx context.Context, movieID int, frontImage []byte) error
UpdateFrontImage provides a mock function with given fields: ctx, movieID, frontImage
func (*MovieReaderWriter) UpdatePartial ¶ added in v0.22.0
func (_m *MovieReaderWriter) UpdatePartial(ctx context.Context, id int, updatedMovie models.MoviePartial) (*models.Movie, error)
UpdatePartial provides a mock function with given fields: ctx, id, updatedMovie
type PerformerReaderWriter ¶
PerformerReaderWriter is an autogenerated mock type for the PerformerReaderWriter type
func (*PerformerReaderWriter) Count ¶ added in v0.5.0
func (_m *PerformerReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*PerformerReaderWriter) CountByTagID ¶ added in v0.6.0
CountByTagID provides a mock function with given fields: ctx, tagID
func (*PerformerReaderWriter) Create ¶
Create provides a mock function with given fields: ctx, newPerformer
func (*PerformerReaderWriter) Destroy ¶ added in v0.5.0
func (_m *PerformerReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*PerformerReaderWriter) Find ¶ added in v0.5.0
Find provides a mock function with given fields: ctx, id
func (*PerformerReaderWriter) FindByGalleryID ¶
func (_m *PerformerReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Performer, error)
FindByGalleryID provides a mock function with given fields: ctx, galleryID
func (*PerformerReaderWriter) FindByImageID ¶
func (_m *PerformerReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Performer, error)
FindByImageID provides a mock function with given fields: ctx, imageID
func (*PerformerReaderWriter) FindByNames ¶
func (_m *PerformerReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Performer, error)
FindByNames provides a mock function with given fields: ctx, names, nocase
func (*PerformerReaderWriter) FindBySceneID ¶
func (_m *PerformerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Performer, error)
FindBySceneID provides a mock function with given fields: ctx, sceneID
func (*PerformerReaderWriter) FindByStashID ¶ added in v0.11.0
func (_m *PerformerReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Performer, error)
FindByStashID provides a mock function with given fields: ctx, stashID
func (*PerformerReaderWriter) FindByStashIDStatus ¶ added in v0.7.0
func (_m *PerformerReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Performer, error)
FindByStashIDStatus provides a mock function with given fields: ctx, hasStashID, stashboxEndpoint
func (*PerformerReaderWriter) FindMany ¶
func (_m *PerformerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Performer, error)
FindMany provides a mock function with given fields: ctx, ids
func (*PerformerReaderWriter) GetAliases ¶ added in v0.19.0
GetAliases provides a mock function with given fields: ctx, relatedID
func (*PerformerReaderWriter) GetImage ¶ added in v0.5.0
GetImage provides a mock function with given fields: ctx, performerID
func (*PerformerReaderWriter) GetStashIDs ¶ added in v0.5.0
func (_m *PerformerReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
GetStashIDs provides a mock function with given fields: ctx, relatedID
func (*PerformerReaderWriter) GetTagIDs ¶ added in v0.6.0
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*PerformerReaderWriter) HasImage ¶ added in v0.21.0
HasImage provides a mock function with given fields: ctx, performerID
func (*PerformerReaderWriter) Query ¶ added in v0.5.0
func (_m *PerformerReaderWriter) Query(ctx context.Context, performerFilter *models.PerformerFilterType, findFilter *models.FindFilterType) ([]*models.Performer, int, error)
Query provides a mock function with given fields: ctx, performerFilter, findFilter
func (*PerformerReaderWriter) QueryCount ¶ added in v0.19.0
func (_m *PerformerReaderWriter) QueryCount(ctx context.Context, galleryFilter *models.PerformerFilterType, findFilter *models.FindFilterType) (int, error)
QueryCount provides a mock function with given fields: ctx, galleryFilter, findFilter
func (*PerformerReaderWriter) QueryForAutoTag ¶ added in v0.7.0
func (_m *PerformerReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Performer, error)
QueryForAutoTag provides a mock function with given fields: ctx, words
func (*PerformerReaderWriter) Update ¶
func (_m *PerformerReaderWriter) Update(ctx context.Context, updatedPerformer *models.Performer) error
Update provides a mock function with given fields: ctx, updatedPerformer
func (*PerformerReaderWriter) UpdateImage ¶ added in v0.5.0
func (_m *PerformerReaderWriter) UpdateImage(ctx context.Context, performerID int, image []byte) error
UpdateImage provides a mock function with given fields: ctx, performerID, image
func (*PerformerReaderWriter) UpdatePartial ¶ added in v0.18.0
func (_m *PerformerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedPerformer models.PerformerPartial) (*models.Performer, error)
UpdatePartial provides a mock function with given fields: ctx, id, updatedPerformer
type SavedFilterReaderWriter ¶ added in v0.8.0
SavedFilterReaderWriter is an autogenerated mock type for the SavedFilterReaderWriter type
func (*SavedFilterReaderWriter) All ¶ added in v0.16.0
func (_m *SavedFilterReaderWriter) All(ctx context.Context) ([]*models.SavedFilter, error)
All provides a mock function with given fields: ctx
func (*SavedFilterReaderWriter) Create ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) Create(ctx context.Context, obj *models.SavedFilter) error
Create provides a mock function with given fields: ctx, obj
func (*SavedFilterReaderWriter) Destroy ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*SavedFilterReaderWriter) Find ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) Find(ctx context.Context, id int) (*models.SavedFilter, error)
Find provides a mock function with given fields: ctx, id
func (*SavedFilterReaderWriter) FindByMode ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) FindByMode(ctx context.Context, mode models.FilterMode) ([]*models.SavedFilter, error)
FindByMode provides a mock function with given fields: ctx, mode
func (*SavedFilterReaderWriter) FindDefault ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) FindDefault(ctx context.Context, mode models.FilterMode) (*models.SavedFilter, error)
FindDefault provides a mock function with given fields: ctx, mode
func (*SavedFilterReaderWriter) FindMany ¶ added in v0.16.0
func (_m *SavedFilterReaderWriter) FindMany(ctx context.Context, ids []int, ignoreNotFound bool) ([]*models.SavedFilter, error)
FindMany provides a mock function with given fields: ctx, ids, ignoreNotFound
func (*SavedFilterReaderWriter) SetDefault ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) SetDefault(ctx context.Context, obj *models.SavedFilter) error
SetDefault provides a mock function with given fields: ctx, obj
func (*SavedFilterReaderWriter) Update ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) Update(ctx context.Context, obj *models.SavedFilter) error
Update provides a mock function with given fields: ctx, obj
type SceneMarkerReaderWriter ¶
SceneMarkerReaderWriter is an autogenerated mock type for the SceneMarkerReaderWriter type
func (*SceneMarkerReaderWriter) All ¶ added in v0.19.1
func (_m *SceneMarkerReaderWriter) All(ctx context.Context) ([]*models.SceneMarker, error)
All provides a mock function with given fields: ctx
func (*SceneMarkerReaderWriter) Count ¶ added in v0.19.1
func (_m *SceneMarkerReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*SceneMarkerReaderWriter) CountByTagID ¶ added in v0.5.0
CountByTagID provides a mock function with given fields: ctx, tagID
func (*SceneMarkerReaderWriter) Create ¶
func (_m *SceneMarkerReaderWriter) Create(ctx context.Context, newSceneMarker *models.SceneMarker) error
Create provides a mock function with given fields: ctx, newSceneMarker
func (*SceneMarkerReaderWriter) Destroy ¶ added in v0.5.0
func (_m *SceneMarkerReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*SceneMarkerReaderWriter) Find ¶ added in v0.5.0
func (_m *SceneMarkerReaderWriter) Find(ctx context.Context, id int) (*models.SceneMarker, error)
Find provides a mock function with given fields: ctx, id
func (*SceneMarkerReaderWriter) FindBySceneID ¶
func (_m *SceneMarkerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.SceneMarker, error)
FindBySceneID provides a mock function with given fields: ctx, sceneID
func (*SceneMarkerReaderWriter) FindMany ¶ added in v0.5.0
func (_m *SceneMarkerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.SceneMarker, error)
FindMany provides a mock function with given fields: ctx, ids
func (*SceneMarkerReaderWriter) GetMarkerStrings ¶ added in v0.5.0
func (_m *SceneMarkerReaderWriter) GetMarkerStrings(ctx context.Context, q *string, sort *string) ([]*models.MarkerStringsResultType, error)
GetMarkerStrings provides a mock function with given fields: ctx, q, sort
func (*SceneMarkerReaderWriter) GetTagIDs ¶ added in v0.5.0
GetTagIDs provides a mock function with given fields: ctx, imageID
func (*SceneMarkerReaderWriter) Query ¶ added in v0.5.0
func (_m *SceneMarkerReaderWriter) Query(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, findFilter *models.FindFilterType) ([]*models.SceneMarker, int, error)
Query provides a mock function with given fields: ctx, sceneMarkerFilter, findFilter
func (*SceneMarkerReaderWriter) QueryCount ¶ added in v0.22.0
func (_m *SceneMarkerReaderWriter) QueryCount(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, findFilter *models.FindFilterType) (int, error)
QueryCount provides a mock function with given fields: ctx, sceneMarkerFilter, findFilter
func (*SceneMarkerReaderWriter) Update ¶
func (_m *SceneMarkerReaderWriter) Update(ctx context.Context, updatedSceneMarker *models.SceneMarker) error
Update provides a mock function with given fields: ctx, updatedSceneMarker
func (*SceneMarkerReaderWriter) UpdatePartial ¶ added in v0.22.0
func (_m *SceneMarkerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedSceneMarker models.SceneMarkerPartial) (*models.SceneMarker, error)
UpdatePartial provides a mock function with given fields: ctx, id, updatedSceneMarker
func (*SceneMarkerReaderWriter) UpdateTags ¶ added in v0.5.0
func (_m *SceneMarkerReaderWriter) UpdateTags(ctx context.Context, markerID int, tagIDs []int) error
UpdateTags provides a mock function with given fields: ctx, markerID, tagIDs
func (*SceneMarkerReaderWriter) Wall ¶ added in v0.5.0
func (_m *SceneMarkerReaderWriter) Wall(ctx context.Context, q *string) ([]*models.SceneMarker, error)
Wall provides a mock function with given fields: ctx, q
type SceneReaderWriter ¶
SceneReaderWriter is an autogenerated mock type for the SceneReaderWriter type
func (*SceneReaderWriter) Count ¶ added in v0.5.0
func (_m *SceneReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*SceneReaderWriter) CountByMovieID ¶ added in v0.5.0
CountByMovieID provides a mock function with given fields: ctx, movieID
func (*SceneReaderWriter) CountByPerformerID ¶ added in v0.5.0
CountByPerformerID provides a mock function with given fields: ctx, performerID
func (*SceneReaderWriter) CountByStudioID ¶ added in v0.5.0
CountByStudioID provides a mock function with given fields: ctx, studioID
func (*SceneReaderWriter) CountByTagID ¶ added in v0.5.0
CountByTagID provides a mock function with given fields: ctx, tagID
func (*SceneReaderWriter) CountMissingChecksum ¶ added in v0.5.0
func (_m *SceneReaderWriter) CountMissingChecksum(ctx context.Context) (int, error)
CountMissingChecksum provides a mock function with given fields: ctx
func (*SceneReaderWriter) CountMissingOSHash ¶ added in v0.5.0
func (_m *SceneReaderWriter) CountMissingOSHash(ctx context.Context) (int, error)
CountMissingOSHash provides a mock function with given fields: ctx
func (*SceneReaderWriter) Create ¶
func (_m *SceneReaderWriter) Create(ctx context.Context, newScene *models.Scene, fileIDs []file.ID) error
Create provides a mock function with given fields: ctx, newScene, fileIDs
func (*SceneReaderWriter) DecrementOCounter ¶ added in v0.5.0
DecrementOCounter provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) Destroy ¶ added in v0.5.0
func (_m *SceneReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) Duration ¶ added in v0.9.0
func (_m *SceneReaderWriter) Duration(ctx context.Context) (float64, error)
Duration provides a mock function with given fields: ctx
func (*SceneReaderWriter) Find ¶ added in v0.5.0
Find provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) FindByChecksum ¶
func (_m *SceneReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Scene, error)
FindByChecksum provides a mock function with given fields: ctx, checksum
func (*SceneReaderWriter) FindByGalleryID ¶ added in v0.5.0
func (_m *SceneReaderWriter) FindByGalleryID(ctx context.Context, performerID int) ([]*models.Scene, error)
FindByGalleryID provides a mock function with given fields: ctx, performerID
func (*SceneReaderWriter) FindByMovieID ¶
func (_m *SceneReaderWriter) FindByMovieID(ctx context.Context, movieID int) ([]*models.Scene, error)
FindByMovieID provides a mock function with given fields: ctx, movieID
func (*SceneReaderWriter) FindByOSHash ¶
func (_m *SceneReaderWriter) FindByOSHash(ctx context.Context, oshash string) ([]*models.Scene, error)
FindByOSHash provides a mock function with given fields: ctx, oshash
func (*SceneReaderWriter) FindByPath ¶ added in v0.5.0
FindByPath provides a mock function with given fields: ctx, path
func (*SceneReaderWriter) FindByPerformerID ¶ added in v0.5.0
func (_m *SceneReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Scene, error)
FindByPerformerID provides a mock function with given fields: ctx, performerID
func (*SceneReaderWriter) FindDuplicates ¶ added in v0.7.0
func (_m *SceneReaderWriter) FindDuplicates(ctx context.Context, distance int, durationDiff float64) ([][]*models.Scene, error)
FindDuplicates provides a mock function with given fields: ctx, distance, durationDiff
func (*SceneReaderWriter) GetCover ¶ added in v0.5.0
GetCover provides a mock function with given fields: ctx, sceneID
func (*SceneReaderWriter) GetFiles ¶ added in v0.17.0
func (_m *SceneReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]*file.VideoFile, error)
GetFiles provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetGalleryIDs ¶ added in v0.5.0
GetGalleryIDs provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetMovies ¶ added in v0.5.0
func (_m *SceneReaderWriter) GetMovies(ctx context.Context, id int) ([]models.MoviesScenes, error)
GetMovies provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) GetPerformerIDs ¶ added in v0.5.0
GetPerformerIDs provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetStashIDs ¶ added in v0.5.0
func (_m *SceneReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
GetStashIDs provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetTagIDs ¶ added in v0.5.0
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetURLs ¶ added in v0.22.0
GetURLs provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) HasCover ¶ added in v0.20.0
HasCover provides a mock function with given fields: ctx, sceneID
func (*SceneReaderWriter) IncrementOCounter ¶ added in v0.5.0
IncrementOCounter provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) IncrementWatchCount ¶ added in v0.18.0
IncrementWatchCount provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) OCount ¶ added in v0.22.0
func (_m *SceneReaderWriter) OCount(ctx context.Context) (int, error)
OCount provides a mock function with given fields: ctx
func (*SceneReaderWriter) OCountByPerformerID ¶ added in v0.21.0
OCountByPerformerID provides a mock function with given fields: ctx, performerID
func (*SceneReaderWriter) PlayCount ¶ added in v0.22.0
func (_m *SceneReaderWriter) PlayCount(ctx context.Context) (int, error)
PlayCount provides a mock function with given fields: ctx
func (*SceneReaderWriter) PlayDuration ¶ added in v0.22.0
func (_m *SceneReaderWriter) PlayDuration(ctx context.Context) (float64, error)
PlayDuration provides a mock function with given fields: ctx
func (*SceneReaderWriter) Query ¶ added in v0.5.0
func (_m *SceneReaderWriter) Query(ctx context.Context, options models.SceneQueryOptions) (*models.SceneQueryResult, error)
Query provides a mock function with given fields: ctx, options
func (*SceneReaderWriter) QueryCount ¶ added in v0.22.0
func (_m *SceneReaderWriter) QueryCount(ctx context.Context, sceneFilter *models.SceneFilterType, findFilter *models.FindFilterType) (int, error)
QueryCount provides a mock function with given fields: ctx, sceneFilter, findFilter
func (*SceneReaderWriter) ResetOCounter ¶ added in v0.5.0
ResetOCounter provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) SaveActivity ¶ added in v0.18.0
func (_m *SceneReaderWriter) SaveActivity(ctx context.Context, id int, resumeTime *float64, playDuration *float64) (bool, error)
SaveActivity provides a mock function with given fields: ctx, id, resumeTime, playDuration
func (*SceneReaderWriter) Size ¶ added in v0.5.0
func (_m *SceneReaderWriter) Size(ctx context.Context) (float64, error)
Size provides a mock function with given fields: ctx
func (*SceneReaderWriter) UniqueScenePlayCount ¶ added in v0.22.0
func (_m *SceneReaderWriter) UniqueScenePlayCount(ctx context.Context) (int, error)
UniqueScenePlayCount provides a mock function with given fields: ctx
func (*SceneReaderWriter) Update ¶
Update provides a mock function with given fields: ctx, updatedScene
func (*SceneReaderWriter) UpdateCover ¶ added in v0.5.0
UpdateCover provides a mock function with given fields: ctx, sceneID, cover
func (*SceneReaderWriter) UpdatePartial ¶ added in v0.17.0
func (_m *SceneReaderWriter) UpdatePartial(ctx context.Context, id int, updatedScene models.ScenePartial) (*models.Scene, error)
UpdatePartial provides a mock function with given fields: ctx, id, updatedScene
type StudioReaderWriter ¶
StudioReaderWriter is an autogenerated mock type for the StudioReaderWriter type
func (*StudioReaderWriter) Count ¶ added in v0.5.0
func (_m *StudioReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*StudioReaderWriter) Destroy ¶ added in v0.5.0
func (_m *StudioReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*StudioReaderWriter) FindByName ¶
func (_m *StudioReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Studio, error)
FindByName provides a mock function with given fields: ctx, name, nocase
func (*StudioReaderWriter) FindByStashID ¶ added in v0.11.0
func (_m *StudioReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Studio, error)
FindByStashID provides a mock function with given fields: ctx, stashID
func (*StudioReaderWriter) FindByStashIDStatus ¶ added in v0.22.0
func (_m *StudioReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Studio, error)
FindByStashIDStatus provides a mock function with given fields: ctx, hasStashID, stashboxEndpoint
func (*StudioReaderWriter) FindChildren ¶ added in v0.5.0
FindChildren provides a mock function with given fields: ctx, id
func (*StudioReaderWriter) GetAliases ¶ added in v0.10.0
GetAliases provides a mock function with given fields: ctx, relatedID
func (*StudioReaderWriter) GetImage ¶ added in v0.5.0
GetImage provides a mock function with given fields: ctx, studioID
func (*StudioReaderWriter) GetStashIDs ¶ added in v0.5.0
func (_m *StudioReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
GetStashIDs provides a mock function with given fields: ctx, relatedID
func (*StudioReaderWriter) HasImage ¶ added in v0.5.0
HasImage provides a mock function with given fields: ctx, studioID
func (*StudioReaderWriter) Query ¶ added in v0.5.0
func (_m *StudioReaderWriter) Query(ctx context.Context, studioFilter *models.StudioFilterType, findFilter *models.FindFilterType) ([]*models.Studio, int, error)
Query provides a mock function with given fields: ctx, studioFilter, findFilter
func (*StudioReaderWriter) QueryForAutoTag ¶ added in v0.7.0
func (_m *StudioReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Studio, error)
QueryForAutoTag provides a mock function with given fields: ctx, words
func (*StudioReaderWriter) Update ¶
Update provides a mock function with given fields: ctx, updatedStudio
func (*StudioReaderWriter) UpdateImage ¶ added in v0.5.0
UpdateImage provides a mock function with given fields: ctx, studioID, image
func (*StudioReaderWriter) UpdatePartial ¶ added in v0.22.0
func (_m *StudioReaderWriter) UpdatePartial(ctx context.Context, input models.StudioPartial) (*models.Studio, error)
UpdatePartial provides a mock function with given fields: ctx, input
type TagReaderWriter ¶
TagReaderWriter is an autogenerated mock type for the TagReaderWriter type
func (*TagReaderWriter) Count ¶ added in v0.5.0
func (_m *TagReaderWriter) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*TagReaderWriter) Destroy ¶ added in v0.5.0
func (_m *TagReaderWriter) Destroy(ctx context.Context, id int) error
Destroy provides a mock function with given fields: ctx, id
func (*TagReaderWriter) FindAllAncestors ¶ added in v0.10.0
func (_m *TagReaderWriter) FindAllAncestors(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)
FindAllAncestors provides a mock function with given fields: ctx, tagID, excludeIDs
func (*TagReaderWriter) FindAllDescendants ¶ added in v0.10.0
func (_m *TagReaderWriter) FindAllDescendants(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)
FindAllDescendants provides a mock function with given fields: ctx, tagID, excludeIDs
func (*TagReaderWriter) FindByChildTagID ¶ added in v0.10.0
func (_m *TagReaderWriter) FindByChildTagID(ctx context.Context, childID int) ([]*models.Tag, error)
FindByChildTagID provides a mock function with given fields: ctx, childID
func (*TagReaderWriter) FindByGalleryID ¶
func (_m *TagReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Tag, error)
FindByGalleryID provides a mock function with given fields: ctx, galleryID
func (*TagReaderWriter) FindByImageID ¶
FindByImageID provides a mock function with given fields: ctx, imageID
func (*TagReaderWriter) FindByName ¶
func (_m *TagReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Tag, error)
FindByName provides a mock function with given fields: ctx, name, nocase
func (*TagReaderWriter) FindByNames ¶
func (_m *TagReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Tag, error)
FindByNames provides a mock function with given fields: ctx, names, nocase
func (*TagReaderWriter) FindByParentTagID ¶ added in v0.10.0
func (_m *TagReaderWriter) FindByParentTagID(ctx context.Context, parentID int) ([]*models.Tag, error)
FindByParentTagID provides a mock function with given fields: ctx, parentID
func (*TagReaderWriter) FindByPerformerID ¶ added in v0.6.0
func (_m *TagReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Tag, error)
FindByPerformerID provides a mock function with given fields: ctx, performerID
func (*TagReaderWriter) FindBySceneID ¶
FindBySceneID provides a mock function with given fields: ctx, sceneID
func (*TagReaderWriter) FindBySceneMarkerID ¶
func (_m *TagReaderWriter) FindBySceneMarkerID(ctx context.Context, sceneMarkerID int) ([]*models.Tag, error)
FindBySceneMarkerID provides a mock function with given fields: ctx, sceneMarkerID
func (*TagReaderWriter) GetAliases ¶ added in v0.8.0
GetAliases provides a mock function with given fields: ctx, tagID
func (*TagReaderWriter) GetImage ¶ added in v0.5.0
GetImage provides a mock function with given fields: ctx, tagID
func (*TagReaderWriter) HasImage ¶ added in v0.21.0
HasImage provides a mock function with given fields: ctx, tagID
func (*TagReaderWriter) Merge ¶ added in v0.8.0
Merge provides a mock function with given fields: ctx, source, destination
func (*TagReaderWriter) Query ¶ added in v0.5.0
func (_m *TagReaderWriter) Query(ctx context.Context, tagFilter *models.TagFilterType, findFilter *models.FindFilterType) ([]*models.Tag, int, error)
Query provides a mock function with given fields: ctx, tagFilter, findFilter
func (*TagReaderWriter) QueryForAutoTag ¶ added in v0.7.0
func (_m *TagReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Tag, error)
QueryForAutoTag provides a mock function with given fields: ctx, words
func (*TagReaderWriter) UpdateAliases ¶ added in v0.8.0
UpdateAliases provides a mock function with given fields: ctx, tagID, aliases
func (*TagReaderWriter) UpdateChildTags ¶ added in v0.10.0
UpdateChildTags provides a mock function with given fields: ctx, tagID, parentIDs
func (*TagReaderWriter) UpdateImage ¶ added in v0.5.0
UpdateImage provides a mock function with given fields: ctx, tagID, image
func (*TagReaderWriter) UpdateParentTags ¶ added in v0.10.0
UpdateParentTags provides a mock function with given fields: ctx, tagID, parentIDs
func (*TagReaderWriter) UpdatePartial ¶ added in v0.22.0
func (_m *TagReaderWriter) UpdatePartial(ctx context.Context, id int, updateTag models.TagPartial) (*models.Tag, error)
UpdatePartial provides a mock function with given fields: ctx, id, updateTag
type TxnManager ¶ added in v0.17.0
type TxnManager struct{}
func (*TxnManager) AddPostCommitHook ¶ added in v0.17.0
func (*TxnManager) AddPostCommitHook(ctx context.Context, hook txn.TxnFunc)
func (*TxnManager) AddPostRollbackHook ¶ added in v0.17.0
func (*TxnManager) AddPostRollbackHook(ctx context.Context, hook txn.TxnFunc)
func (*TxnManager) Complete ¶ added in v0.18.0
func (*TxnManager) Complete(ctx context.Context)
func (*TxnManager) IsLocked ¶ added in v0.17.0
func (*TxnManager) IsLocked(err error) bool
func (*TxnManager) Reset ¶ added in v0.17.0
func (*TxnManager) Reset() error
func (*TxnManager) Rollback ¶ added in v0.17.0
func (*TxnManager) Rollback(ctx context.Context) error