upload_hlp

package
v0.0.0-...-c5af768 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStruct

type MemoryStruct struct {
	// contains filtered or unexported fields
}

type Upload

type Upload struct {
	M_timeout        int32
	M_connecttimeout int32
	// contains filtered or unexported fields
}

func CreateUpload

func CreateUpload(bHttps bool) *Upload

func (*Upload) Get

func (u *Upload) Get(url string) bool

func (*Upload) Get_return

func (u *Upload) Get_return(info string)

func (*Upload) Run

func (u *Upload) Run() bool

func (*Upload) Start

func (u *Upload) Start(data string, url string) bool

func (*Upload) Stop

func (u *Upload) Stop() bool

func (*Upload) WriteCallback

func (u *Upload) WriteCallback(contents uintptr, size uint, nmemb uint, userp uintptr) uint

type Upload_Interface

type Upload_Interface interface {
	CreateUpload(bHttps bool)
	DestoryUpload()
	Run() //线程入口
	/* 配置函数,URL、上传文件名字,回显信息写入到指定文件中 */
	Start(data *rune, url string) bool //启动上传

	Get(url string) bool //启动上传
	Stop() bool          //停止上传

	Get_return(info string)

	// 新的写回信息
	WriteCallback(contents uintptr, size uint, nmemb uint, userp uintptr) uint
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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