recorder

package
v0.0.0-...-dce903a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2016 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {

	// Transport that can be used by clients to inject
	Transport *http.Transport
	// contains filtered or unexported fields
}

func New

func New(cassetteName string) (*Recorder, error)

Creates a new recorder

func (*Recorder) Mode

func (r *Recorder) Mode() RecorderMode

Recorder mode getter

func (*Recorder) Stop

func (r *Recorder) Stop() error

Stops the recorder

func (*Recorder) UseMatcher

func (r *Recorder) UseMatcher(matcher cassette.Matcher)

Setter for custom matcher

type RecorderMode

type RecorderMode int
const (
	ModeRecording RecorderMode = iota
	ModeReplaying
)

Recorder states

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL