matching

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestFingerprint

func GetRequestFingerprint(req *http.Request, requestBody []byte, webserver bool) string

getRequestFingerprint returns request hash

Types

type MatchingError

type MatchingError struct {
	StatusCode  int
	Description string
}

func (MatchingError) Error

func (this MatchingError) Error() string

type RequestMatcher

type RequestMatcher struct {
	RequestCache cache.Cache
	Webserver    *bool
	Simulation   *models.Simulation
}

func (*RequestMatcher) GetResponse

getResponse returns stored response from cache

func (*RequestMatcher) SaveRequestResponsePair added in v0.8.1

func (this *RequestMatcher) SaveRequestResponsePair(pair *models.RequestResponsePair) error

type TemplateMatcher added in v0.10.2

type TemplateMatcher struct{}

func (TemplateMatcher) Match added in v0.10.2

func (t TemplateMatcher) Match(req models.RequestDetails, webserver bool, simulation *models.Simulation) (*models.ResponseDetails, error)

Jump to

Keyboard shortcuts

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