Documentation
¶
Index ¶
- func GetAngliaListPageNums(ur string) (int, error)
- func GetBestIPfromMicroService(ur string) (string, error)
- func ParseAnglia(ur string) (interface{}, error)
- func ParseAngliaList(ur string) ([]string, error)
- func PostParseAngliaList(keyword string) ([]string, error)
- func StanHTTPGetURL(ur string) ([]byte, error)
- func StanHTTPPostURL(url string, jsonStr []byte) ([]byte, error)
- type AngliaPostResponse
- type BestIPResponse
- type BestProxyIP
- type PagesResponse
- type PartNumber
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAngliaListPageNums ¶
GetAngliaListPageNums pare anglia detail
func GetBestIPfromMicroService ¶
47.91.138.212:9999/api/v1/getip/1 GetAngliaListPageNums pare anglia detail
func ParseAngliaList ¶
ParseAngliaList http reques from node.js and parse
func PostParseAngliaList ¶
func StanHTTPGetURL ¶
StanHTTPGetURL go request url use http get.
func StanHTTPPostURL ¶
St var jsonprep string = `{"username":"`+username+`","password":"`+password+`"}`
var jsonStr = []byte(jsonprep)
u := "http://47.91.138.212:8001/anglialist" k := "http://www.anglia-live.com/products/circuit-protection/fuses-breakers-holders/resettable-fuses#resultspage,4|" var jsonrep string = `{"keyword":"` + k + `"}`
Types ¶
type AngliaPostResponse ¶
type BestIPResponse ¶
type BestIPResponse struct {
Bestip *BestProxyIP `json:"bestip"`
}
type BestProxyIP ¶
type BestProxyIP struct { Status int `json:"status"` ID string `json:"id"` IP string `json:"ip"` Dur float64 `json:"dur"` Err string `json:"err,omitempty"` }
PagesResponse
type PagesResponse ¶
type PagesResponse struct { Status int `json:"status"` Keyword string `json:"keyword"` Pages int `json:"pages"` }
PagesResponse json response from ndoe.js struct
type PartNumber ¶
type PartNumber struct { Status int `json:"status"` Keyword string `json:"keyword"` Steps []string `json:"steps"` Prices []float64 `json:"prices"` Description string `json:"description"` Part string `json:"part"` Promaf string `json:"pro_maf"` Pkgtype string `json:"pkgtype"` Rohs string `json:"rohs"` Tcode string `json:"tcode"` Stock string `json:"stock"` ReserveStock string `json:"reserveStock"` TotalStockDue string `json:"totalStockDue"` TotalResStockDue string `json:"totalResStockDue"` SupplierLeadTime string `json:"supplierLeadTime"` Spq string `json:"spq"` Moq string `json:"moq"` OrderMultiple string `json:"orderMultiple"` }
PartNumber str
Click to show internal directories.
Click to hide internal directories.