Documentation ¶
Index ¶
- func Column2(rows *sql.Rows, row int) [][]byte
- func Column3(rows *sql.Rows, row int) [][]byte
- func HandleGet(rows *sql.Rows, err error, closure func(*sql.Rows, int) [][]byte) ([][][]byte, myerror.Code)
- func HandleUpdate(res sql.Result, err error) myerror.Code
- func HttpRequest(addr string, req []byte) ([]byte, util.CurlCommand, postman.Item, error)
- func HttpRequestRaw(req http.Request) (Response, RequestReceivedInMock, error)
- func IndexDbGet(safeIndexDb *util.SafeIndexDb, binding string) ([]byte, error)
- func IndexDbStore(safeIndexDb *util.SafeIndexDb, binding string, req []byte) ([]byte, error)
- func MemcacheDeleteKey(addr string, req []byte) ([]byte, error)
- func MemcacheExistKey(addr string, req []byte, flag bool) ([]byte, error)
- func MemcacheGetKey(addr string, req []byte) ([]byte, error)
- func MysqlStatement(addr string, req []byte) ([]byte, error)
- func RedisDeleteKey(addr string, req []byte) ([]byte, error)
- func RedisExistKey(addr string, req []byte, flag bool) ([]byte, error)
- func RedisGetKey(addr string, req []byte) ([]byte, error)
- func SaveFile(payload []byte, filepath string)
- func SeleniumClick(wdElementMap *map[string]selenium.WebElement, uid string) ([]byte, error)
- func SeleniumClose(wdMap *map[string]selenium.WebDriver, ...) ([]byte, error)
- func SeleniumFindElement(wdMap *map[string]selenium.WebDriver, ...) ([]byte, error)
- func SeleniumFindElements(wdMap *map[string]selenium.WebDriver, ...) ([]byte, error)
- func SeleniumGet(wdMap *map[string]selenium.WebDriver, uid string, addr []byte) ([]byte, error)
- func SeleniumGetCookies(wdMap *map[string]selenium.WebDriver, uid string) ([]byte, error)
- func SeleniumSendKeys(wdElementMap *map[string]selenium.WebElement, uid string, text []byte) ([]byte, error)
- func SeleniumStart(wdMap *map[string]selenium.WebDriver, ...) ([]byte, error)
- func TcpNewReqDial(payload []byte, binding string)
- func TcpNewRes(payload []byte, binding string, tcpNewWriteResChan map[string]chan TcpReq) (string, string, error)
- type Bytes
- type Entity
- type EntityWhole
- type FiddlerAB
- type MysqlRequest
- type MysqlResponse
- type Request
- type RequestForReport
- type RequestReceivedInMock
- type Response
- type TcpFiddlerAB
- type TcpItem
- type TcpReq
- type WsCallProtocol
- type WsProtocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleGet ¶
func HandleGet(rows *sql.Rows, err error, closure func(*sql.Rows, int) [][]byte) ([][][]byte, myerror.Code)
handleGet used for Database get row
func HttpRequest ¶
func HttpRequestRaw ¶
func HttpRequestRaw(req http.Request) (Response, RequestReceivedInMock, error)
func IndexDbGet ¶
func IndexDbGet(safeIndexDb *util.SafeIndexDb, binding string) ([]byte, error)
func IndexDbStore ¶
func SeleniumClick ¶
func SeleniumClose ¶
func SeleniumFindElement ¶
func SeleniumFindElements ¶
func SeleniumGet ¶
func SeleniumGetCookies ¶
func SeleniumSendKeys ¶
func SeleniumStart ¶
func TcpNewReqDial ¶
Types ¶
type EntityWhole ¶
type MysqlRequest ¶
type MysqlResponse ¶
type MysqlResponse struct {
// contains filtered or unexported fields
}
type RequestForReport ¶
type RequestReceivedInMock ¶
type RequestReceivedInMock struct { HttpParam map[string][]string `json:"http_param"` HttpHeader http.Header `json:"http_header"` HttpCookie map[string]string `json:"http_cookie"` HttpBody map[string]interface{} `json:"http_body"` HttpBodyRaw string `json:"http_body_raw"` HttpProxyUrl string `json:"http_proxy_url"` HttpPath string `json:"http_path"` HttpScheme string `json:"http_scheme"` HttpMethod string `json:"http_method"` }
type Response ¶
type Response struct { HttpHeader http.Header `json:"http_header"` HttpCookie map[string]string `json:"http_cookie"` HttpBody map[string]interface{} `json:"http_body"` HttpBodyRaw string `json:"http_body_raw"` Error string `json:"error"` StatusCode string `json:"status_code"` HttpRequest RequestReceivedInMock `json:"http_req"` }
type TcpFiddlerAB ¶
type TcpReq ¶
type WsCallProtocol ¶
type WsProtocol ¶
Click to show internal directories.
Click to hide internal directories.