Documentation ¶
Index ¶
- type Conn
- type Flow
- func (f *Flow) Close() *Flow
- func (f *Flow) Debug() *Flow
- func (f *Flow) End() *Flow
- func (f *Flow) Receive(pkts ...interface{}) *Flow
- func (f *Flow) Run(fn func()) *Flow
- func (f *Flow) Send(pkts ...interface{}) *Flow
- func (f *Flow) Skip(pkts ...interface{}) *Flow
- func (f *Flow) Test(conn Conn) error
- func (f *Flow) TestAsync(conn Conn, timeout time.Duration) <-chan error
- type Pipe
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
A Flow is a sequence of actions that can be tested against a connection.
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
The Pipe pipes packets from Send to Receive.
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response the mocked http repsonse
func NewResponse ¶
NewResponse create a new repsonse
Click to show internal directories.
Click to hide internal directories.