Documentation ¶
Index ¶
- func CopyHandler(c *fiber.Ctx) error
- func DeleteHandler(c *fiber.Ctx) error
- func InfoHandler(c *fiber.Ctx) error
- func InitService()
- func ListHandler(c *fiber.Ctx) error
- func MoveHandler(c *fiber.Ctx) error
- func RenameHandler(c *fiber.Ctx) error
- func ThumbnailHandler(c *fiber.Ctx) error
- func UploadHandler(c *fiber.Ctx) error
- func ViewHandler(c *fiber.Ctx) error
- type ImageInfo
- type ImagemanagerService
- func (s *ImagemanagerService) Copy(sourcePath, destPath string) error
- func (s *ImagemanagerService) Delete(path string) error
- func (s *ImagemanagerService) GetInfo(path string) (*ImageInfo, error)
- func (s *ImagemanagerService) GetThumbnail(path string) (string, error)
- func (s *ImagemanagerService) List(path string) ([]ImageInfo, error)
- func (s *ImagemanagerService) Move(sourcePath, destPath string) error
- func (s *ImagemanagerService) Rename(oldPath, newPath string) error
- func (s *ImagemanagerService) Upload(path string, file io.Reader, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfoHandler ¶
func InfoHandler(c *fiber.Ctx) error
InfoHandler returns detailed information about an image
func InitService ¶
func InitService()
func ListHandler ¶
func ListHandler(c *fiber.Ctx) error
ListHandler handles the request to list images
func ThumbnailHandler ¶
func ThumbnailHandler(c *fiber.Ctx) error
ThumbnailHandler serves image thumbnails
func UploadHandler ¶
func UploadHandler(c *fiber.Ctx) error
UploadHandler handles image upload requests
Types ¶
type ImagemanagerService ¶
type ImagemanagerService struct {
// contains filtered or unexported fields
}
func GetService ¶
func GetService() *ImagemanagerService
func (*ImagemanagerService) Copy ¶
func (s *ImagemanagerService) Copy(sourcePath, destPath string) error
Copy copies an image and its thumbnail to a new location
func (*ImagemanagerService) Delete ¶
func (s *ImagemanagerService) Delete(path string) error
Delete removes an image and its thumbnail
func (*ImagemanagerService) GetInfo ¶
func (s *ImagemanagerService) GetInfo(path string) (*ImageInfo, error)
GetInfo returns detailed information about an image
func (*ImagemanagerService) GetThumbnail ¶
func (s *ImagemanagerService) GetThumbnail(path string) (string, error)
GetThumbnail returns a thumbnail of the image
func (*ImagemanagerService) List ¶
func (s *ImagemanagerService) List(path string) ([]ImageInfo, error)
List returns a list of images in the specified path
func (*ImagemanagerService) Move ¶
func (s *ImagemanagerService) Move(sourcePath, destPath string) error
Move moves an image and its thumbnail to a new location
func (*ImagemanagerService) Rename ¶
func (s *ImagemanagerService) Rename(oldPath, newPath string) error
Rename renames an image and its thumbnail
Click to show internal directories.
Click to hide internal directories.