Documentation ¶
Overview ¶
Package querystring contains a modifier to rewrite query strings in a request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewModifier ¶
func NewModifier(key, value string) martian.RequestModifier
NewModifier returns a request modifier that will set the query string at key with the given value. If the query string key already exists all values will be overwritten.
func NewVerifier ¶
func NewVerifier(key, value string) (verify.RequestVerifier, error)
NewVerifier returns a new param verifier.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher is a conditonal evalutor of query string parameters to be used in structs that take conditions.
func NewMatcher ¶
NewMatcher builds a new querystring matcher
func (*Matcher) MatchRequest ¶
MatchRequest evaluates a request and returns whether or not the request contains a querystring param that matches the provided name and value.
Click to show internal directories.
Click to hide internal directories.