mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-20 22:52:58 -05:00
docs: Clarify "not" matcher structure (see #3233)
This commit is contained in:
parent
7be747fbe9
commit
657f0cab17
1 changed files with 14 additions and 0 deletions
|
@ -114,6 +114,20 @@ type (
|
||||||
// true, the final result of the "not" matcher is false. Individual
|
// true, the final result of the "not" matcher is false. Individual
|
||||||
// matchers within a set work the same (i.e. different matchers in
|
// matchers within a set work the same (i.e. different matchers in
|
||||||
// the same set are AND'ed).
|
// the same set are AND'ed).
|
||||||
|
//
|
||||||
|
// Note that the generated docs which describe the structure of
|
||||||
|
// this module are wrong because of how this type unmarshals JSON
|
||||||
|
// in a custom way. The correct structure is:
|
||||||
|
//
|
||||||
|
// ```json
|
||||||
|
// [
|
||||||
|
// {},
|
||||||
|
// {}
|
||||||
|
// ]
|
||||||
|
// ```
|
||||||
|
//
|
||||||
|
// where each of the array elements is a matcher set, i.e. an
|
||||||
|
// object keyed by matcher name.
|
||||||
MatchNot struct {
|
MatchNot struct {
|
||||||
MatcherSetsRaw []caddy.ModuleMap `json:"-" caddy:"namespace=http.matchers"`
|
MatcherSetsRaw []caddy.ModuleMap `json:"-" caddy:"namespace=http.matchers"`
|
||||||
MatcherSets []MatcherSet `json:"-"`
|
MatcherSets []MatcherSet `json:"-"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue