Documentation ¶
Index ¶
- type Mode
- type Recorder
- func (r *Recorder) AddFilter(filter cassette.Filter)
- func (r *Recorder) CancelRequest(req *http.Request)
- func (r *Recorder) RoundTrip(req *http.Request) (*http.Response, error)
- func (r *Recorder) SetMatcher(matcher cassette.Matcher)
- func (r *Recorder) SetTransport(t http.RoundTripper)
- func (r *Recorder) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder represents a type used to record and replay client and server interactions
func (*Recorder) AddFilter ¶
AddFilter appends a hook to modify a request before it is recorded.
Filters are useful for filtering out sensitive parameters from the recorded data.
func (*Recorder) CancelRequest ¶
CancelRequest implements the github.com/coreos/etcd/client.CancelableTransport interface
func (*Recorder) SetMatcher ¶
SetMatcher sets a function to match requests against recorded HTTP interactions.
func (*Recorder) SetTransport ¶
func (r *Recorder) SetTransport(t http.RoundTripper)
SetTransport can be used to configure the behavior of the 'real' client used in record-mode
Click to show internal directories.
Click to hide internal directories.