Documentation
¶
Index ¶
- Variables
- type S3Config
- func (a *S3Config) Init(key, secret, region, host, bucket string)
- func (a *S3Config) Remove(bucket, destination string) error
- func (a *S3Config) UploadBase64(base64Image, destination string) (string, error)
- func (a *S3Config) UploadFile(bucket, destination, imgType string, buffer []byte) (string, error)
- func (a *S3Config) UploadJpeg(m image.Image, destination string) (string, error)
- func (a *S3Config) UploadPng(m image.Image, destination string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var S3 = &S3Config{}
Functions ¶
This section is empty.
Types ¶
type S3Config ¶
type S3Config struct {
Key, Secret, Region, Host, Bucket string
}
func (*S3Config) UploadBase64 ¶
func (*S3Config) UploadFile ¶
func (*S3Config) UploadJpeg ¶
Click to show internal directories.
Click to hide internal directories.