Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrImageZeroSize = errors.New("image has 0px dimension")
Functions ¶
func GetImagePath ¶
Types ¶
type BackendService ¶ added in v0.1.0
type BackendService interface { Create(input models.ImageCreateInput) (*models.Image, error) Destroy(input models.ImageDestroyInput) error DestroyUnusedImages() error DestroyUnusedImage(imageID uuid.UUID) error }
func GetService ¶
func GetService(repo models.ImageRepo) BackendService
type FileBackend ¶
type FileBackend struct{}
func (*FileBackend) DestroyFile ¶
func (s *FileBackend) DestroyFile(image *models.Image) error
type Service ¶
func (*Service) DestroyUnusedImage ¶
DestroyUnusedImage destroys the image with the provided ID if it is not used for a scene, performer or studio.
func (*Service) DestroyUnusedImages ¶
DestroyUnusedImages destroys all images that are not used for a scene, performer or studio.
Click to show internal directories.
Click to hide internal directories.