String extractor
Extract values from *http.Request or http.ResponseWriter
type Strings interface {
Extract(req *http.Request, res http.ResponseWriter, valueOfTag string) ([]string, error)
Tag() string // the tag is for instance query, path or watever you want.
// Then in your inputs structures you can use `watever:"something"`
}kcd.Config.StringsExtractors = append(kcd.Config.StringsExtractors, YourExtractor{})Last updated