Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterData ¶
FilterData allows replacement of sensitive data with a dummy-string
func ModifyHTTPRequestBody ¶
func ModifyHTTPRequestBody(request *http.Request, modifyFunc ModifyStringFunc)
ModifyHTTPRequestBody changes the body of an HTTP request using a callback function
func Start ¶
func Start(cassetteName string, modFunc RequestModifierFunc)
Start starts a VCR session with the given cassette name. Records episodes if the cassette file does not exists. Otherwise plays back recorded episodes.
Types ¶
type ModifyStringFunc ¶
ModifyStringFunc is a function that modifies a given string and returns it
type RequestModifierFunc ¶
RequestModifierFunc is a function that can be used to manipulate HTTP requests before they are sent to the server. Useful for adding row-limits in integration tests.