Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { Next chan struct{} // contains filtered or unexported fields }
Player is the test player that can be primed with sample data
type PlayerPair ¶
type PlayerPair struct { Handle *ari.PlaybackHandle Err error }
A PlayerPair is the pair of results returned from a mock Play request
type Recorder ¶
type Recorder struct { Next chan struct{} // contains filtered or unexported fields }
Recorder is the test player that can be primed with sample data
func (*Recorder) Append ¶
func (r *Recorder) Append(h *ari.LiveRecordingHandle, err error)
Append appends the given Play results
func (*Recorder) Record ¶
func (r *Recorder) Record(name string, opts *ari.RecordingOptions) (h *ari.LiveRecordingHandle, err error)
Record pops the top results and returns them, as well as triggering player.Next
type RecorderPair ¶
type RecorderPair struct { Handle *ari.LiveRecordingHandle Err error }
A RecorderPair is the pair of results returned from a mock Record request
Click to show internal directories.
Click to hide internal directories.