Versions in this module Expand all Collapse all v0 v0.1.0 Aug 13, 2026 Changes in this version + const EnvDir + const EnvMode + func RequestKey(method string, u *url.URL, body []byte) string + func Slug(name string) string + type Cassette struct + func LoadCassette(path string) (*Cassette, error) + func (c *Cassette) Len() int + func (c *Cassette) Save() error + type ErrCassetteMiss struct + Key string + Summary string + func (e *ErrCassetteMiss) Error() string + type Interaction struct + Key string + Request ReqSnapshot + Response RespSnapshot + type Mode string + const ModeAuto + const ModeOff + const ModeRecord + const ModeReplay + func ModeFromEnv() (Mode, error) + func ParseMode(s string) (Mode, error) + type Recorder struct + Cassette *Cassette + Mode Mode + Path string + func FromEnv(name string) (*Recorder, error) + func Open(mode Mode, dir, name string) (*Recorder, error) + func (r *Recorder) Client() *http.Client + func (r *Recorder) Close() error + func (r *Recorder) Enabled() bool + func (r *Recorder) Wrap(base http.RoundTripper) http.RoundTripper + type ReqSnapshot struct + Body string + Headers map[string][]string + Method string + URL string + type RespSnapshot struct + Body string + Headers map[string][]string + Status int + type Transport struct + Base http.RoundTripper + Cassette *Cassette + Mode Mode + func NewTransport(mode Mode, cassette *Cassette, base http.RoundTripper) *Transport + func (t *Transport) Client() *http.Client + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)