Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poc ¶
type Poc struct { Name string `yaml:"name"` Transport string `yaml:"transport"` Set yaml.MapSlice `yaml:"set"` Rules map[string]Rule `json:"rules"` Groups map[string][]Rule `json:"groups"` Expression string `yaml:"expression"` Detail Detail `yaml:"detail"` }
func LoadAllPoc ¶
type Rule ¶
type Rule struct { Request RuleRequest `yaml:"request"` Expression string `yaml:"expression"` Output Output `yaml:"output"` }
func (*Rule) ReplaceSearch ¶
func (rule *Rule) ReplaceSearch(resp *proto.Response, varMap map[string]interface{}) map[string]interface{}
ReplaceSearch search
func (*Rule) ReplaceSet ¶
type RuleRequest ¶
type RuleRequest struct { Cache bool `yaml:"cache"` Method string `yaml:"method"` Path string `yaml:"path"` Headers map[string]string `yaml:"headers"` Body string `yaml:"body"` FollowRedirects bool `yaml:"follow_redirects"` Content string `yaml:"content"` ReadTimeout string `yaml:"read_timeout"` ConnectionID string `yaml:"connection_id"` }
Click to show internal directories.
Click to hide internal directories.