Documentation
¶
Overview ¶
Package tapeplayer answers HTTP calls from recorded responses instead of the network, so a run can be shown again without the servers it first called.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRecorded = errors.New("the recording has no response for this call")
ErrNotRecorded is returned for a call the recording has no answer for.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player is an http.RoundTripper that plays records back. It is safe for concurrent use.
func New ¶
New plays records back. HTTP records only: a message-based record (async, gRPC) is never matched.
Click to show internal directories.
Click to hide internal directories.