Documentation ¶
Overview ¶
Package extractors implements extractors for http response data retrieval.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtractorTypes = map[string]ExtractorType{ "regex": RegexExtractor, }
ExtractorTypes is an table for conversion of extractor type from string.
View Source
var PartTypes = map[string]Part{ "body": BodyPart, "header": HeaderPart, "all": AllPart, }
PartTypes is an table for conversion of part type from string.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct { // Type is the type of the matcher Type string `yaml:"type"` // Regex are the regex pattern required to be present in the response Regex []string `yaml:"regex"` // Part is the part of the request to match // // By default, matching is performed in request body. Part string `yaml:"part,omitempty"` // contains filtered or unexported fields }
Extractor is used to extract part of response using a regex.
func (*Extractor) CompileExtractors ¶
CompileExtractors performs the initial setup operation on a extractor
func (*Extractor) ExtractDNS ¶ added in v1.1.1
ExtractDNS extracts response from dns message using a regex
type ExtractorType ¶
type ExtractorType = int
ExtractorType is the type of the extractor specified
const ( // RegexExtractor extracts responses with regexes RegexExtractor ExtractorType = iota + 1 )
Click to show internal directories.
Click to hide internal directories.