Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMimeTypeNotAllowed = errors.New("mime-type not to allowed to upload")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Ak string `yaml:"ak" json:"ak"` Sk string `yaml:"sk" json:"sk"` Bucket string `yaml:"bucket" json:"bucket"` Domain string `yaml:"domain" json:"domain"` AllowExtensions []string `yaml:"allow_extensions" json:"allow_extensions"` Zone string `yaml:"zone" json:"zone"` Https bool `yaml:"https" json:"https"` EnableCdnUpload bool `yaml:"enable_cdn_upload" json:"enable_cdn_upload"` }
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
func (*Uploader) UploadHTTP ¶
Click to show internal directories.
Click to hide internal directories.