aurestplayback

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(recorderPath string) aurestclientapi.Client

New builds a new http client simulator based on playback.

Use this in your tests.

Types

type PlaybackImpl

type PlaybackImpl struct {
	RecorderPath string
	// Now is exposed so tests can fixate the time by overwriting this field
	Now func() time.Time
}

func (*PlaybackImpl) Perform

func (c *PlaybackImpl) Perform(_ context.Context, method string, requestUrl string, _ interface{}, response *aurestclientapi.ParsedResponse) error

Jump to

Keyboard shortcuts

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