storage_ipfs

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 18 Imported by: 1

README

storage-ipfs

infra.Go ipfs storage driver.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpDelete

func HttpDelete(url string, args ...Map) string

发送HTTP DELETE请求

func HttpDeleteJson

func HttpDeleteJson(url string, args ...Map) Map

func HttpDownload

func HttpDownload(url, file string) error

发送HTTP download

func HttpDownloadFile

func HttpDownloadFile(url string, file *os.File) error

发送HTTP download

func HttpForm

func HttpForm(uuu string, data Map) string

func HttpFormJson

func HttpFormJson(url string, data Map) Map

func HttpGet

func HttpGet(url string, args ...Map) string

发送HTTP GET请求

func HttpGetBody

func HttpGetBody(url string, args ...Map) (io.ReadCloser, error)

func HttpGetJson

func HttpGetJson(url string) Map

func HttpPost

func HttpPost(url string, bodyType string, body io.Reader, args ...Map) (string, error)

func HttpPostBytes

func HttpPostBytes(url string, bodyType string, body io.Reader, args ...Map) []byte

args是HEADER自定的

func HttpPostJson

func HttpPostJson(url string, bodyType string, body io.Reader, args ...Map) (Map, error)

func HttpPostXml

func HttpPostXml(url string, bodyType string, body io.Reader, args ...Map) (Map, error)

func HttpUpload

func HttpUpload(url string, name, file string, args ...Map) (string, error)

func HttpUploadReader

func HttpUploadReader(url string, field, name string, file io.Reader, args ...Map) ([]byte, error)

func IPCSDriver

func IPCSDriver() storage.Driver

func IPFSDriver

func IPFSDriver() storage.Driver

Types

This section is empty.

Jump to

Keyboard shortcuts

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