Documentation ¶
Index ¶
- Constants
- Variables
- func FindMatchTypes(id string, body []byte) map[string]struct{}
- func MatchAny(value string, body []byte) bool
- func MatchDoubleQuoteContext(value string, body []byte) bool
- func MatchElementContext(value string, body []byte) bool
- func MatchHrefAttribute(value string, body []byte) bool
- func MatchScriptContext(value string, body []byte) bool
- func MatchSingleQuoteContext(value string, body []byte) bool
- func MiniUuid() string
- type EscapeCheck
- type Matcher
- type Param
- type RateLimitClient
- type Response
Constants ¶
View Source
const ( SingleQuote = "SingleQuote" DoubleQuote = "DoubleQuote" Element = "Element" Script = "Script" Href = "Href" Unknown = "Unknown" )
View Source
const ( PathParam = iota QueryParam )
Variables ¶
View Source
var EscapeChecks = map[string]EscapeCheck{ SingleQuote: { Checks: map[string]string{ `'`: `'`, `\'`: `\\'`, }, MatchFunc: MatchSingleQuoteContext, }, DoubleQuote: { Checks: map[string]string{ `"`: `"`, }, MatchFunc: MatchDoubleQuoteContext, }, Element: { Checks: map[string]string{ `<`: `<`, }, MatchFunc: MatchElementContext, }, Script: { Checks: map[string]string{ `</`: `</`, }, MatchFunc: MatchScriptContext, }, }
Functions ¶
func FindMatchTypes ¶
func MatchDoubleQuoteContext ¶
func MatchElementContext ¶
func MatchHrefAttribute ¶
func MatchScriptContext ¶
func MatchSingleQuoteContext ¶
Types ¶
type EscapeCheck ¶
type RateLimitClient ¶
type RateLimitClient struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.