Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintFileList ¶
func PrintFileList(fl []string)
Types ¶
type Config ¶
type Config struct { AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` Zone int `json:"zone"` Bucket string `json:"Bucket"` UseHTTPS bool `json:"use_https"` UseCdnDomains bool `json:"use_cdn_domains"` Domain string `json:"domain"` }
func LoadConfig ¶
func LoadConfig() *Config
type QiNiuClient ¶
type QiNiuClient struct { AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` Bucket string `json:"bucket"` Zone int `json:"zone"` //0:华东, 1:华北, 2:华南, 3:北美 UseHTTPS bool `json:"use_https"` UseCdnDomains bool `json:"use_cdn_domains"` Domain string `json:"domain"` }
func NewClient ¶
func NewClient(accessKey, secretKey, bucket string, Zone int, useHttps, useCdnDomains bool, domain string) *QiNiuClient
func (*QiNiuClient) UploadFile ¶
func (client *QiNiuClient) UploadFile(fileList []string) []string
Click to show internal directories.
Click to hide internal directories.