Documentation
¶
Overview ¶
Package replay provides the ability to record and replay HTTP requests.
Index ¶
- func NewAWSRecorder(logf func(string, ...interface{}), mode recorder.Mode, filename string) (r *recorder.Recorder, done func(), err error)
- func NewGCPDialOptions(logf func(string, ...interface{}), mode recorder.Mode, filename string, ...) (opts []grpc.DialOption, done func(), err error)
- func NewGCSRecorder(logf func(string, ...interface{}), mode recorder.Mode, filename string) (r *recorder.Recorder, done func(), err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAWSRecorder ¶
func NewAWSRecorder(logf func(string, ...interface{}), mode recorder.Mode, filename string) (r *recorder.Recorder, done func(), err error)
NewAWSRecorder returns a go-vcr.Recorder which reads or writes golden files from the given path. The recorder uses a matching algorithm specialized to AWS HTTP API calls. The done() function flushes the recorder and scrubs any sensitive data from the saved golden file. The golden file is not written to disk if the done() function is not called.
func NewGCPDialOptions ¶
func NewGCPDialOptions(logf func(string, ...interface{}), mode recorder.Mode, filename string, scrubber func(func(string, ...interface{}), string, proto.Message) error) (opts []grpc.DialOption, done func(), err error)
NewGCPDialOptions return grpc.DialOptions that are to be appended to a GRPC dial request. These options allow a recorder/replayer to intercept RPCs and save RPCs to the file at filename, or read the RPCs from the file and return them.
Types ¶
This section is empty.