Documentation ¶
Index ¶
- Variables
- func BoundFromLoop(loop string, perviousError error) (int64, int64, error)
- func CallFiddler(rpcHandler RpcAble) http.HandlerFunc
- func CallHttp() http.HandlerFunc
- func CallMockHTTP(mock_http_type string) http.HandlerFunc
- func CallMysql() http.HandlerFunc
- func CallRawRpc(rpcHandler RpcAble) http.HandlerFunc
- func CallRpc(rpcHandler RpcAble) http.HandlerFunc
- func CallTcpFiddler(rpcHandler RpcAble) http.HandlerFunc
- func CallV2(rw http.ResponseWriter, req *http.Request)
- func CallWasm(gw genericWriter, ws_clientid string)
- func CallWasmV2(gw genericWriter, ws_clientid string)
- func CommandsGet() http.HandlerFunc
- func CommonMockWasm(ctx context.Context, ...) uint32
- func CommonMockWasmV2(ctx context.Context, type_ string, ...) uint32
- func FiddlerMockWasmBeforeReq(ctx context.Context, request, new_request interface{}, element_new string, ...) (uint32, bool)
- func FiddlerMockWasmBeforeRes(ctx context.Context, request, response interface{}, element_new string, ...) uint32
- func GetCert(rw http.ResponseWriter, req *http.Request)
- func GetIndexDB(rw http.ResponseWriter, req *http.Request)
- func HandleAT(loop string, code []byte, isHttp bool, isHttpFiddlerAB bool, ...)
- func HandleHttpFiddlerAB(code []byte, isHttpFiddlerAB bool, http_targetList []string, ...)
- func HandleTcpFiddlerAB(code []byte, isTcpFiddlerAB bool, tcp_targetList []string, ...)
- func Max(x, y uint32) uint32
- func MockFIDDLEInit()
- func MockHTTPInit()
- func OauthLogin(rpcHandler RpcAble) http.HandlerFunc
- func RegisterCommands(rpcHandler RpcAble) http.HandlerFunc
- func RegisterHostCall(f func(string, string, string, []byte) ([]byte, error))
- func RegisterProcessors(cmdList []string, route string, rpcHandler RpcAble)
- func Report(rw http.ResponseWriter, req *http.Request)
- func ReportData(rw http.ResponseWriter, req *http.Request)
- func SetBaseWsCall(rw http.ResponseWriter, req *http.Request)
- func SetBaseWsCallFromBox()
- func SetBaseWsMock(rw http.ResponseWriter, req *http.Request)
- func SetBaseWsMockFromBox()
- func SetCertFile(rw http.ResponseWriter, req *http.Request)
- func SetMock(rw http.ResponseWriter, req *http.Request)
- func SetMockBeforeRequestFiddler(rw http.ResponseWriter, req *http.Request)
- func SetMockBeforeRequestTCPFiddler(rw http.ResponseWriter, req *http.Request)
- func SetMockHTTP(rw http.ResponseWriter, req *http.Request)
- func SetMockTCP(rw http.ResponseWriter, req *http.Request)
- func StoreIndexDB(rw http.ResponseWriter, req *http.Request)
- func TcpFiddlerMockWasmBeforeReq(ctx context.Context, request, new_request interface{}, element_new string, ...) ([]uint32, []capabilities.Entity)
- func TcpFiddlerMockWasmBeforeRes(ctx context.Context, response interface{}, element_new string, skipReport bool, ...) ([]uint32, []capabilities.Entity)
- func TcpModifyRequest(req *Bytes, port_map string, l_remote_addr string, real_l_remote_addr string, ...) (error, []capabilities.Entity)
- func TcpModifyResponse(res *Bytes, port_map string, l_remote_addr string, real_l_remote_addr string, ...) (error, []capabilities.Entity)
- func TemplateInit()
- func UnifiedV2(rpcHandler RpcAble) http.HandlerFunc
- func UseKeyFile(rw http.ResponseWriter, req *http.Request)
- func WebsocketRPC(rpcHandler RpcAble) http.HandlerFunc
- func WebsocketSetMock(rw http.ResponseWriter, req *http.Request)
- func WebsocketSetMockBeforeRequestFiddler(rw http.ResponseWriter, req *http.Request)
- func WebsocketSetMockTcpFiddler(rw http.ResponseWriter, req *http.Request)
- func WebsocketTrace(rw http.ResponseWriter, req *http.Request)
- func WsCall(uid string, fn string, index int64, callNetConn util.SafeWsConnMap, req []byte) ([]byte, error)
- func WsMock(uid string, fn string, mockUINetConn util.SafeWsConnMap, req []byte) ([]byte, error)
- func WsTrace(resp *http.Response, traceNetConn *util.SafeWsConnMap, ...)
- type Bytes
- type CertCache
- type FiddleAB
- type Index_db_struct
- type Modifier
- type RpcAble
- type TcpFiddleAB
- type TcpPayload
Constants ¶
This section is empty.
Variables ¶
View Source
var MockCommandMockUidMap util.SafeStringMap = util.NewSafeStringMap() //mockCommand:Mock uid
View Source
var MockCommandUidMap util.SafeStringMap = util.NewSafeStringMap() //mock command:uid string
Functions ¶
func CallFiddler ¶
func CallFiddler(rpcHandler RpcAble) http.HandlerFunc
func CallHttp ¶
func CallHttp() http.HandlerFunc
func CallMockHTTP ¶
func CallMockHTTP(mock_http_type string) http.HandlerFunc
func CallMysql ¶
func CallMysql() http.HandlerFunc
func CallRawRpc ¶
func CallRawRpc(rpcHandler RpcAble) http.HandlerFunc
func CallRpc ¶
func CallRpc(rpcHandler RpcAble) http.HandlerFunc
func CallTcpFiddler ¶
func CallTcpFiddler(rpcHandler RpcAble) http.HandlerFunc
func CallWasmV2 ¶
func CallWasmV2(gw genericWriter, ws_clientid string)
func CommandsGet ¶
func CommandsGet() http.HandlerFunc
func CommonMockWasm ¶
func CommonMockWasmV2 ¶
func GetIndexDB ¶
func GetIndexDB(rw http.ResponseWriter, req *http.Request)
func HandleHttpFiddlerAB ¶
func HandleHttpFiddlerAB(code []byte, isHttpFiddlerAB bool, http_targetList []string, response *model.CallApiResponse, rw http.ResponseWriter, req *http.Request, rpcHandler RpcAble)
func HandleTcpFiddlerAB ¶
func HandleTcpFiddlerAB(code []byte, isTcpFiddlerAB bool, tcp_targetList []string, response *model.CallApiResponse, rw http.ResponseWriter, req *http.Request, rpcHandler RpcAble)
func MockFIDDLEInit ¶
func MockFIDDLEInit()
func MockHTTPInit ¶
func MockHTTPInit()
func OauthLogin ¶
func OauthLogin(rpcHandler RpcAble) http.HandlerFunc
func RegisterCommands ¶
func RegisterCommands(rpcHandler RpcAble) http.HandlerFunc
func RegisterHostCall ¶
func RegisterProcessors ¶
func ReportData ¶
func ReportData(rw http.ResponseWriter, req *http.Request)
func SetBaseWsCall ¶
func SetBaseWsCall(rw http.ResponseWriter, req *http.Request)
func SetBaseWsCallFromBox ¶
func SetBaseWsCallFromBox()
func SetBaseWsMock ¶
func SetBaseWsMock(rw http.ResponseWriter, req *http.Request)
func SetBaseWsMockFromBox ¶
func SetBaseWsMockFromBox()
func SetCertFile ¶
func SetCertFile(rw http.ResponseWriter, req *http.Request)
func SetMockBeforeRequestFiddler ¶
func SetMockBeforeRequestFiddler(rw http.ResponseWriter, req *http.Request)
func SetMockBeforeRequestTCPFiddler ¶
func SetMockBeforeRequestTCPFiddler(rw http.ResponseWriter, req *http.Request)
func SetMockHTTP ¶
func SetMockHTTP(rw http.ResponseWriter, req *http.Request)
func SetMockTCP ¶
func SetMockTCP(rw http.ResponseWriter, req *http.Request)
func StoreIndexDB ¶
func StoreIndexDB(rw http.ResponseWriter, req *http.Request)
func TcpModifyRequest ¶
func TcpModifyResponse ¶
func TemplateInit ¶
func TemplateInit()
func UnifiedV2 ¶
func UnifiedV2(rpcHandler RpcAble) http.HandlerFunc
func UseKeyFile ¶
func UseKeyFile(rw http.ResponseWriter, req *http.Request)
func WebsocketRPC ¶
func WebsocketRPC(rpcHandler RpcAble) http.HandlerFunc
func WebsocketSetMock ¶
func WebsocketSetMock(rw http.ResponseWriter, req *http.Request)
func WebsocketSetMockBeforeRequestFiddler ¶
func WebsocketSetMockBeforeRequestFiddler(rw http.ResponseWriter, req *http.Request)
func WebsocketSetMockTcpFiddler ¶
func WebsocketSetMockTcpFiddler(rw http.ResponseWriter, req *http.Request)
func WebsocketTrace ¶
func WebsocketTrace(rw http.ResponseWriter, req *http.Request)
Types ¶
type Bytes ¶
type Bytes []byte
func (*Bytes) MarshalJSON ¶
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) UnmarshalJSON ¶
type Index_db_struct ¶
type RpcAble ¶
type RpcAble interface { Start([]string) Stop() HostCallSpecific(string, string, string, []byte) ([]byte, error) RegisterCommand(string, func(ctx context.Context, request, response interface{}) uint32) RpcRequest(string, proto.Message, proto.Message) uint32 Source(context.Context, interface{}) string TraceId(context.Context, interface{}) string FiddleQueue(chan FiddleAB, chan FiddleAB) TcpFiddleQueue(chan TcpFiddleAB, chan TcpFiddleAB) UserPermissionJWT(string, string) (string, error) }
var RpcHandler RpcAble
type TcpFiddleAB ¶
type TcpPayload ¶
type TcpPayload struct { Laddr string Raddr string Payload string Tcp_Items []capabilities.TcpItem }
Click to show internal directories.
Click to hide internal directories.