BaseWeixinPayClientUtil

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeURL

func EncodeURL(api string, params map[string]string) (string, error)

EncodeURL add and encode parameters.

func FetchIP

func FetchIP() (net.IP, error)

FetchIP current IP address

func GetQuery

func GetQuery(req *http.Request, key string) string

GetQuery returns url query value

func NewTLSClient

func NewTLSClient(certPath, keyPath string) (httpClient *http.Client, err error)

NewTLSClient 创建支持双向证书认证的 http.Client.

func PostXML

func PostXML(uri string, obj interface{}) ([]byte, error)

PostXML perform a HTTP/POST request with XML body

func RandomString

func RandomString(ln int) string

RandomString random string generator

@ln length of return string

func TSLPostXML

func TSLPostXML(uri string, obj interface{}, certPath, keyPath string) ([]byte, error)

TSLPostXML ...

func TokenAPI

func TokenAPI(api, token string) (string, error)

TokenAPI 获取带 token 的 API 地址

Types

This section is empty.

Jump to

Keyboard shortcuts

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