replay

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package replay provides the ability to record and replay HTTP requests.

Index

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.

func NewGCSRecorder

func NewGCSRecorder(logf func(string, ...interface{}), mode recorder.Mode, filename string) (r *recorder.Recorder, done func(), err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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