Versions in this module Expand all Collapse all v1 v1.0.0 Jan 2, 2019 Changes in this version + type APIDiff struct + DirectoryPath string + Options Options + func New(path string, options Options) *APIDiff + func (ad *APIDiff) Compare(source RecordedSession, target Manifest) (map[int]Differences, error) + func (ad *APIDiff) Delete(name string) error + func (ad *APIDiff) Detail(name string, interactionIndex int) (*cassette.Interaction, *RequestStats, error) + func (ad *APIDiff) List() ([]RecordedSession, error) + func (ad *APIDiff) Record(dir, name string, interaction RequestInteraction, ri RequestInfo, ...) error + func (ad *APIDiff) Show(name string) (RecordedSession, error) + type Differences struct + Body map[string]error + Changed bool + Headers map[string]error + InteractionIndex int + URL string + type Manifest struct + Interactions []RequestInteraction + MatchingRules []MatchingRules + Request RequestInfo + Version int + func NewManifest() *Manifest + func (m *Manifest) Parse(r io.Reader) error + type MatchingRules struct + Name string + Value interface{} + type Options struct + Name string + Verbose bool + type RecordedInteraction struct + Method string + Stats RequestStats + StatusCode int + URL string + type RecordedSession struct + Created time.Time + Interactions []RecordedInteraction + Name string + Path string + type RequestInfo struct + Headers http.Header + Payload string + type RequestInteraction struct + Headers http.Header + Method string + Payload string + StatusCode int + URL string + func (ri RequestInteraction) Fingerprint() string + type RequestStats struct + ContentTransfer int + DNSLookup int + ServerProcessing int + TCPConnection int + TLSHandshake int + func (rs RequestStats) Duration() int + type UI struct + func NewUI(w io.Writer) *UI + func (ui *UI) ListSessions(sessions []RecordedSession, showCaption bool) + func (ui *UI) ShowComparisonResults(source RecordedSession, errors map[int]Differences) + func (ui *UI) ShowInteractionDetail(interaction *cassette.Interaction, stats *RequestStats) + func (ui *UI) ShowSession(session RecordedSession)