Documentation ¶
Index ¶
- func ExactMatch(matchingString string, toMatch string) bool
- func FieldMatcher(field *models.RequestFieldMatchers, toMatch string) bool
- func GlobMatch(matchingString string, toMatch string) bool
- func HeaderMatcher(matchingHeaders, toMatch map[string][]string) bool
- func JsonMatch(matchingString string, toMatch string) bool
- func JsonPathMatch(matchingString string, toMatch string) bool
- func RegexMatch(matchingString string, toMatch string) bool
- func RequestMatcher(req models.RequestDetails, webserver bool, simulation *models.Simulation) (*models.RequestMatcherResponsePair, error)
- func XmlMatch(matchingString string, toMatch string) bool
- func XpathMatch(matchingString string, toMatch string) bool
- type CacheMatcher
- func (this CacheMatcher) FlushCache() error
- func (this CacheMatcher) GetAllResponses() (v2.CacheView, error)
- func (this *CacheMatcher) GetCachedResponse(req *models.RequestDetails) (*models.CachedResponse, *MatchingError)
- func (this CacheMatcher) PreloadCache(simulation models.Simulation) error
- func (this *CacheMatcher) SaveRequestMatcherResponsePair(request models.RequestDetails, pair *models.RequestMatcherResponsePair) error
- type MatchingError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactMatch ¶ added in v0.11.0
func FieldMatcher ¶ added in v0.11.0
func FieldMatcher(field *models.RequestFieldMatchers, toMatch string) bool
func HeaderMatcher ¶ added in v0.11.0
func JsonPathMatch ¶ added in v0.11.0
func RegexMatch ¶ added in v0.11.0
func RequestMatcher ¶
func RequestMatcher(req models.RequestDetails, webserver bool, simulation *models.Simulation) (*models.RequestMatcherResponsePair, error)
func XpathMatch ¶ added in v0.11.0
Types ¶
type CacheMatcher ¶ added in v0.11.0
func (CacheMatcher) FlushCache ¶ added in v0.11.0
func (this CacheMatcher) FlushCache() error
func (CacheMatcher) GetAllResponses ¶ added in v0.11.0
func (this CacheMatcher) GetAllResponses() (v2.CacheView, error)
func (*CacheMatcher) GetCachedResponse ¶ added in v0.11.0
func (this *CacheMatcher) GetCachedResponse(req *models.RequestDetails) (*models.CachedResponse, *MatchingError)
getResponse returns stored response from cache
func (CacheMatcher) PreloadCache ¶ added in v0.11.0
func (this CacheMatcher) PreloadCache(simulation models.Simulation) error
func (*CacheMatcher) SaveRequestMatcherResponsePair ¶ added in v0.11.0
func (this *CacheMatcher) SaveRequestMatcherResponsePair(request models.RequestDetails, pair *models.RequestMatcherResponsePair) error
type MatchingError ¶
func (MatchingError) Error ¶
func (this MatchingError) Error() string
Click to show internal directories.
Click to hide internal directories.