Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParamByPath ¶
func NewParamByPath(bucketName, objDir, objName string, localPath string) *store.UploadParam
NewParamByPath 通过本地路径上传到 oss
func NewParamByStream ¶
func NewParamByStream(bucketName, objDir, objName string, fileStream multipart.File) *store.UploadParam
NewParamByStream 通过文件流上传到 oss
Types ¶
type AliOssStore ¶
type AliOssStore struct {
// contains filtered or unexported fields
}
func NewAliOssStore ¶
func NewAliOssStore(isSaveCover bool) *AliOssStore
func (*AliOssStore) Upload ¶
func (s *AliOssStore) Upload(param *store.UploadParam) (*store.UploadResult, error)
Upload 上传文件到 阿里云的 OSS
Click to show internal directories.
Click to hide internal directories.