testlib

package
v0.0.0-...-a2f78c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyCtrl

func NewProxyCtrl() (proxyCtrl *controller.ProxyCtrl, stopChan chan struct{}, closeChan chan struct{})

func ProxyCtrlCliReq

func ProxyCtrlCliReq(ctrl *controller.ProxyCtrl, url string, header map[string]string, dataReader io.Reader) *httptest.ResponseRecorder

func ProxyCtrlSerReq

func ProxyCtrlSerReq(ctrl *controller.ProxyCtrl, url string, header map[string]string, dataReader io.Reader, reqJobId string, wSecret string) (resp *httptest.ResponseRecorder, respJobId string)

func RespDataEq

func RespDataEq(body io.Reader, data []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL