Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MatchingError ¶
func (MatchingError) Error ¶
func (this MatchingError) Error() string
type RequestMatcher ¶
type RequestMatcher struct {
RequestCache cache.Cache
Webserver *bool
Simulation *models.Simulation
}
func (*RequestMatcher) GetResponse ¶
func (this *RequestMatcher) GetResponse(req *models.RequestDetails) (*models.ResponseDetails, *MatchingError)
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)
Click to show internal directories.
Click to hide internal directories.