Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliYun ¶
func (*AliYun) PreSignedPutObjectUrl ¶
func (ali *AliYun) PreSignedPutObjectUrl(ctx context.Context, req *oss.PreSignedPutObjectUrlReq) (*oss.PreSignedPutObjectUrlResp, error)
PreSignedPutObjectUrl 阿里云生成预签名的链接. 这里生成签名的时候没有 指定 Content-Type 所以前端上传的时候也不能指定 Content-Type.
func (*AliYun) PutObject ¶
func (ali *AliYun) PutObject(ctx context.Context, req *oss.PutObjectReq) (resp *oss.PutObjectResp, err error)
PutObject 通过二进制文件 上传文件
Click to show internal directories.
Click to hide internal directories.