Documentation
¶
Index ¶
- func Bytes2RSAPrivateKey(priKey []byte) *rsa.PrivateKey
- func Bytes2RSAPublicKey(pubKey []byte) *rsa.PublicKey
- func LocalIP() string
- func MapStringToStruct(m map[string]string, i interface{}) error
- func RandomStr() string
- func XmlToMap(xmlData []byte) (map[string]string, error)
- type HttpClient
- func (hc *HttpClient) Delete(url string, paramData map[string]interface{}, headerParam map[string]string) ([]byte, error)
- func (hc *HttpClient) Get(url string, paramData map[string]interface{}, headerParam map[string]string) (interface{}, error)
- func (hc *HttpClient) Post(url string, paramData map[string]interface{}, headerParam map[string]string) (interface{}, error)
- func (hc *HttpClient) PostBodyJson(url string, body interface{}) (interface{}, error)
- func (hc *HttpClient) PostBodyJsonWithHeader(url string, body interface{}) (interface{}, error)
- func (hc *HttpClient) PostBodyXml(url string, body interface{}) ([]byte, error)
- func (hc *HttpClient) Put(url string, paramData map[string]interface{}, headerParam map[string]string) (interface{}, error)
- type LogClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes2RSAPrivateKey ¶
func Bytes2RSAPrivateKey(priKey []byte) *rsa.PrivateKey
func Bytes2RSAPublicKey ¶
func MapStringToStruct ¶
Types ¶
type HttpClient ¶
func InitHttpClient ¶
func InitHttpClient() *HttpClient
func (*HttpClient) PostBodyJson ¶
func (hc *HttpClient) PostBodyJson(url string, body interface{}) (interface{}, error)
func (*HttpClient) PostBodyJsonWithHeader ¶
func (hc *HttpClient) PostBodyJsonWithHeader(url string, body interface{}) (interface{}, error)
func (*HttpClient) PostBodyXml ¶
func (hc *HttpClient) PostBodyXml(url string, body interface{}) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.