recorder

package
v0.0.0-...-bf90f01 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTMatcher

func JWTMatcher() cassette.Matcher

JWTMatcher a cassette matcher that verifies the request method/URL and the subject of the token in the "Authorization" header.

func New

func New(cassetteName string, options ...Option) (*recorder.Recorder, error)

New creates a new recorder

func WithJWTMatcher

func WithJWTMatcher(r *recorder.Recorder)

WithJWTMatcher an option to specify the JWT matcher for the recorder

Types

type Option

type Option func(*recorder.Recorder)

Option an option to customize the recorder to create

func WithMatcher

func WithMatcher(matcher cassette.Matcher) Option

WithMatcher an option to specify a custom matcher for the recorder

Jump to

Keyboard shortcuts

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