Documentation
¶
Index ¶
- func DeleteS3Object(ctx context.Context, s3Client *s3.Client, bucket, key string) error
- func DownloadObjFromS3(c *gin.Context, bucket string, objKey string) []byte
- func ErrorHandling(c *gin.Context)
- func ErrorHandlingWebhook(c *gin.Context)
- func GenerateObjectKey(c *gin.Context)
- func GeneratePresignedGetUrl(c *gin.Context)
- func GeneratePresignedUrl(ctx context.Context, contentType string, s3c *s3.Client, objectKey string) (*s3.PresignedPostRequest, error)
- func GetEventInfos(c *gin.Context)
- func GetFileMaxSize(objectKey string) int
- func GetObjectKeyFromUrl(s string) (string, error)
- func GetPresignedUploadUrl(c *gin.Context)
- func IsObjectImg(objectKey string) bool
- func IsObjectTrack(objectKey string) bool
- func UploadBufferToS3(ctx context.Context, s3Client *s3.Client, bucket, key string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteS3Object ¶
func DownloadObjFromS3 ¶
func ErrorHandling ¶
func ErrorHandlingWebhook ¶
func GenerateObjectKey ¶
func GeneratePresignedGetUrl ¶
func GeneratePresignedUrl ¶
func GetEventInfos ¶
func GetFileMaxSize ¶
func GetObjectKeyFromUrl ¶
func GetPresignedUploadUrl ¶
func IsObjectImg ¶
func IsObjectTrack ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.