Documentation ¶
Index ¶
- func Middleware(recorder Recorder) func(http.Handler) http.Handler
- func UIHandler(recorder Recorder) http.Handler
- type Interaction
- type MemoryRecorder
- func (m *MemoryRecorder) Clear()
- func (m *MemoryRecorder) GetInteraction(index int) Interaction
- func (m *MemoryRecorder) GetInteractions(start int, length int) []Interaction
- func (m *MemoryRecorder) Length() int
- func (m *MemoryRecorder) Record(req *http.Request, requestBody []byte, resp *http.Response, ...) error
- type Recorder
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interaction ¶
type MemoryRecorder ¶
type MemoryRecorder struct {
// contains filtered or unexported fields
}
func NewMemoryRecorder ¶
func NewMemoryRecorder(limit int) *MemoryRecorder
func (*MemoryRecorder) Clear ¶
func (m *MemoryRecorder) Clear()
func (*MemoryRecorder) GetInteraction ¶
func (m *MemoryRecorder) GetInteraction(index int) Interaction
func (*MemoryRecorder) GetInteractions ¶
func (m *MemoryRecorder) GetInteractions(start int, length int) []Interaction
func (*MemoryRecorder) Length ¶
func (m *MemoryRecorder) Length() int
Click to show internal directories.
Click to hide internal directories.