Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLikeToRegex ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseQuery ¶
type Query ¶
type Query struct {
Req *RequestClause
Resp *ResponseClause
// Logical operations
And []*Query
Or []*Query
}
type RequestClause ¶
type RequestClause struct {
Method *StringExpr
Host *StringExpr
Path *StringExpr
Query *StringExpr
Body *StringExpr // Alias: raw
Port *IntExpr
IsTLS *BoolExpr
}
func (*RequestClause) String ¶
func (r *RequestClause) String() string
type ResponseClause ¶
type ResponseClause struct {
StatusCode *IntExpr
Body *StringExpr // Alias: raw
Length *IntExpr
}
func (*ResponseClause) String ¶
func (r *ResponseClause) String() string
type StringExpr ¶
func (*StringExpr) Eval ¶
func (s *StringExpr) Eval(val string) bool
func (*StringExpr) String ¶
func (s *StringExpr) String() string
Click to show internal directories.
Click to hide internal directories.