Documentation ¶
Index ¶
- func DigOutboundIP() (string, error)
- func GetCommonDataFromJSON(datapath string)
- func GetExternalIP() string
- func GetInternalIP() (string, error)
- func GetOutboundIP() (net.IP, error)
- func HttpGetRequest(httpGet *HttpGet) error
- func HttpPostRequest(httpPost *HttpPost) error
- func Map2UrlQuery(mapParams map[string]string) string
- func Map2UrlQueryInterface(mapParams map[string]interface{}) string
- func Map2UrlQueryUrl(mapParams map[string]string) string
- func SaveFile(path, str string) error
- func WebOutboundIP() string
- type CommonData
- type ExchangeData
- type HttpGet
- type HttpPost
- type JsonData
- type OSType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigOutboundIP ¶
func GetCommonDataFromJSON ¶
func GetCommonDataFromJSON(datapath string)
func GetExternalIP ¶
func GetExternalIP() string
func GetInternalIP ¶
func GetOutboundIP ¶
func HttpGetRequest ¶
func HttpPostRequest ¶
func Map2UrlQuery ¶
将map格式的请求参数转换为字符串格式的 mapParams: map格式的参数键值对 return: 查询字符串
func Map2UrlQueryInterface ¶
func Map2UrlQueryUrl ¶
func WebOutboundIP ¶
func WebOutboundIP() string
Types ¶
type CommonData ¶
type ExchangeData ¶
type ExchangeData struct { CoinConstraint cmap.ConcurrentMap PairConstraint cmap.ConcurrentMap }
func GetExchangeDataFromJSON ¶
func GetExchangeDataFromJSON(datapath string, exName exchange.ExchangeName) *ExchangeData
type JsonData ¶
type JsonData struct { CoinConstraint []*exchange.CoinConstraint `json: "coinconstraint"` PairConstraint []*exchange.PairConstraint `json: "pairconstraint"` }
Click to show internal directories.
Click to hide internal directories.