Documentation ¶
Overview ¶
* Copyright (c) 2020. sevth <sevthdev@gmail.com> * Project name: FCM, File name: http_Post.go * Date: 2020/5/6 下午1:03 * Author: sevth
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPost ¶
func NewPost(c *PostRequestInputConfig) (*postRequest, error)
Types ¶
type AwsMultiPartUpload ¶
type AwsMultiPartUpload struct { Bucket string FilePath string FileKey string FileMime string FileSize int64 PartSize int64 // 分片大小 Tries int // 单个分片上传尝试次数 Goroutine int // 线程 CompletedParts []*s3.CompletedPart // 保存分片数据 // contains filtered or unexported fields }
func (*AwsMultiPartUpload) AwsMultipartUpload ¶
func (a *AwsMultiPartUpload) AwsMultipartUpload(svc *s3.S3) error
type PostRequestBodyField ¶
type PostRequestBodyField struct {
// contains filtered or unexported fields
}
type PostRequestInputConfig ¶
type PostRequestInputConfig struct { Url string Proxy string Client *http.Client Body *PostRequestBodyField }
Click to show internal directories.
Click to hide internal directories.