network

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RequestTimeOutSecond = 30

Variables

This section is empty.

Functions

func CheckHttpServiceConnected

func CheckHttpServiceConnected(httpUrl string) bool

func CheckInternetConnected

func CheckInternetConnected() bool

func DownloadFile

func DownloadFile(url string, filepath string) error

func FileUploadRequest

func FileUploadRequest(url string, params map[string]string, paramName, path string) (map[string]interface{}, error)

func GetQueryRequest

func GetQueryRequest(url string, params map[string]string) (map[string]interface{}, error)

func PostBodyRequest

func PostBodyRequest(url string, jsonStr string) (map[string]interface{}, error)

func PostFormDataRequest

func PostFormDataRequest(url string, params map[string]string) (map[string]interface{}, error)

func SoapRequest

func SoapRequest(url string, payload []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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