Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePath ¶
validate the templates dir path
Types ¶
type YamlConfig ¶
type YamlConfig struct { Template struct { Severity string `yaml:"severity"` Author string `yaml:"author"` } Request struct { Payloads []string `yaml:"payloads"` Paths string `yaml:"paths"` Parameters bool `yaml:"parameters"` Exclude []string `yaml:"exclude"` } Response struct { StatusCode int `yaml:"statusCode"` Patterns []string `yaml:"patterns"` Exclude []string `yaml:"exclude"` Header []string `yaml:"header"` } }
Yaml Contruct
func ReadTemplates ¶
func ReadTemplates(templates string) (conf *YamlConfig)
read the templates directory and return the file
Click to show internal directories.
Click to hide internal directories.