Documentation ¶
Index ¶
- Constants
- func SaveImage(ir *ImageUploaderResource, c *gin.Context, imageTypeName string) (*api.Response, *api.Error)
- func UniqFilename(origFilename string, thumbSuffix string) (string, string, error)
- type Config
- type ImageUploaderResource
- func (ir *ImageUploaderResource) DeleteImage(c *gin.Context)
- func (ir *ImageUploaderResource) GetAllImages(c *gin.Context)
- func (ir *ImageUploaderResource) GetImage(c *gin.Context)
- func (ir *ImageUploaderResource) UpdateImage(c *gin.Context)
- func (ir *ImageUploaderResource) UploadImage(c *gin.Context)
- type ImageUploaderService
- type ServiceConfig
Constants ¶
View Source
const IMAGE_POST_FIELD = "image"
View Source
const META_COUNT_FIELD = "image_count"
View Source
const THUMB_INTERPOLATION = resize.Lanczos3
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageUploaderResource ¶
type ImageUploaderResource struct {
// contains filtered or unexported fields
}
func (*ImageUploaderResource) DeleteImage ¶
func (ir *ImageUploaderResource) DeleteImage(c *gin.Context)
func (*ImageUploaderResource) GetAllImages ¶
func (ir *ImageUploaderResource) GetAllImages(c *gin.Context)
func (*ImageUploaderResource) GetImage ¶
func (ir *ImageUploaderResource) GetImage(c *gin.Context)
func (*ImageUploaderResource) UpdateImage ¶
func (ir *ImageUploaderResource) UpdateImage(c *gin.Context)
func (*ImageUploaderResource) UploadImage ¶
func (ir *ImageUploaderResource) UploadImage(c *gin.Context)
type ImageUploaderService ¶
type ImageUploaderService struct { }
func (*ImageUploaderService) Migrate ¶
func (s *ImageUploaderService) Migrate(cfg Config) error
func (*ImageUploaderService) Run ¶
func (s *ImageUploaderService) Run(cfg Config) error
Click to show internal directories.
Click to hide internal directories.