Documentation ¶
Index ¶
- func NewRequest(method, host, rawPath string, body io.Reader) *http.Request
- func NewResponse(status int) *http.Response
- func NextAvailPort() uint16
- func SpecConfig(statusPort, proxyPort uint16, natsPorts ...uint16) *config.Config
- func SpecSSLConfig(statusPort, proxyPort, SSLPort uint16, natsPorts ...uint16) *config.Config
- type FakeFile
- type HttpConn
- func (x *HttpConn) CheckLine(expected string)
- func (x *HttpConn) CheckLines(expected []string)
- func (x *HttpConn) ReadRequest() (*http.Request, string)
- func (x *HttpConn) ReadResponse() (*http.Response, string)
- func (x *HttpConn) WriteLine(line string)
- func (x *HttpConn) WriteLines(lines []string)
- func (x *HttpConn) WriteRequest(req *http.Request)
- func (x *HttpConn) WriteResponse(resp *http.Response)
- type NATSRunner
- type Nats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResponse ¶
func NextAvailPort ¶
func NextAvailPort() uint16
Types ¶
type HttpConn ¶
func NewHttpConn ¶
func (*HttpConn) CheckLines ¶
func (*HttpConn) WriteLines ¶
func (*HttpConn) WriteRequest ¶
func (*HttpConn) WriteResponse ¶
type NATSRunner ¶
func NewNATSRunner ¶
func NewNATSRunner(port int) *NATSRunner
func (*NATSRunner) KillWithFire ¶
func (runner *NATSRunner) KillWithFire()
func (*NATSRunner) Start ¶
func (runner *NATSRunner) Start()
func (*NATSRunner) Stop ¶
func (runner *NATSRunner) Stop()
type Nats ¶
type Nats struct {
// contains filtered or unexported fields
}
func NewNatsOnRandomPort ¶
func NewNatsOnRandomPort() *Nats
Source Files ¶
Click to show internal directories.
Click to hide internal directories.