Documentation ¶
Index ¶
- Constants
- Variables
- func AliyunUploadStream(ossFileName string, r io.Reader) (string, error)
- func AliyunUploadString(key string, value string) error
- func Base64Upload(key string, value string) (string, error)
- func FileUpload(fileName string, r io.Reader) (string, error)
- func GetDataPath() string
- func GetDownLoadPath() string
- func GetExportPath() string
- func GetRootPath() string
- func GetUploadPath() string
- func StreamUpload(ossFileName string, r io.Reader) (string, error)
- func UploadFileToTxyun(filePath string) (string, error)
- func UploadToAws(fileName string, r io.Reader) (string, error)
- func UploadToTxyun(fileName string, r io.Reader) (string, error)
- func UploadToTxyunWithPath(path, fileName string, r io.Reader) (string, error)
- type AwsConf
- type TxyunConf
- type UploadConf
Constants ¶
View Source
const ( // 阿里云 OSSProviderTypeAliyun = 1 // 亚马逊 OSSProviderTypeAmazon = 2 // 配置Key OSSConfKeyAliyun = "oss.aliyun" OSSConfKeyAws = "oss.aws" )
View Source
const (
OSSConfKeyTxyun = "oss.txyun"
)
Variables ¶
Functions ¶
func AliyunUploadStream ¶
上传文件流
func GetDataPath ¶
func GetDataPath() string
func GetDownLoadPath ¶
func GetDownLoadPath() string
func GetExportPath ¶
func GetExportPath() string
func GetRootPath ¶
func GetRootPath() string
func GetUploadPath ¶
func GetUploadPath() string
func StreamUpload ¶
文件流方式上传(本地不存文件)
Types ¶
Click to show internal directories.
Click to hide internal directories.