Versions in this module Expand all Collapse all v0 v0.0.7 Apr 25, 2023 Changes in this version + type Predicate interface + Accept func(interface{}) bool + func And(predicates ...Predicate) Predicate + func BodyXPathEquals(xpath, value string) Predicate + func BodyXPathEqualsIgnoreCase(xpath, value string) Predicate + func BodyXPathMatches(xpath string, pattern *regexp.Regexp) Predicate + func ExtractedValueAccepted(extractor extractor.Extractor, predicate Predicate) Predicate + func False() Predicate + func HeaderContains(name string, path string) Predicate + func HeaderContainsIgnoreCase(name string, path string) Predicate + func HeaderEquals(name string, value string) Predicate + func HeaderEqualsIgnoreCase(name string, path string) Predicate + func HeaderMatches(name string, regex *regexp.Regexp) Predicate + func HeaderStartsWith(name string, path string) Predicate + func MethodIs(method string) Predicate + func Not(predicate Predicate) Predicate + func Or(predicates ...Predicate) Predicate + func PathEquals(path string) Predicate + func PathMatches(pathRegex *regexp.Regexp) Predicate + func PathStartsWith(path string) Predicate + func QueryParamContains(name, value string) Predicate + func QueryParamContainsIgnoreCase(name, value string) Predicate + func QueryParamEquals(name, value string) Predicate + func QueryParamEqualsIgnoreCase(name, value string) Predicate + func QueryParamMatches(name string, pattern *regexp.Regexp) Predicate + func QueryParamStartsWith(name string, prefix string) Predicate + func RequestURIEquals(path string) Predicate + func RequestURIMatches(pathRegex *regexp.Regexp) Predicate + func RequestURIStartsWith(path string) Predicate + func StringContains(value string) Predicate + func StringEndsWith(value string) Predicate + func StringEquals(value string) Predicate + func StringMatches(regex *regexp.Regexp) Predicate + func StringStartsWith(value string) Predicate + func True() Predicate + type PredicateFunc func(interface{}) bool + func (pf PredicateFunc) Accept(v interface{}) bool