golang

package
v0.0.0-...-c4eacb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: MIT Imports: 13 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL