mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Making README consistent, fixing "meta data" (#3244)
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
## Name
|
## Name
|
||||||
|
|
||||||
*metadata* - enable a meta data collector.
|
*metadata* - enables a metadata collector.
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
By enabling *metadata* any plugin that implements [metadata.Provider
|
By enabling *metadata* any plugin that implements [metadata.Provider
|
||||||
interface](https://godoc.org/github.com/coredns/coredns/plugin/metadata#Provider) will be called for
|
interface](https://godoc.org/github.com/coredns/coredns/plugin/metadata#Provider) will be called for
|
||||||
each DNS query, at beginning of the process for that query, in order to add its own meta data to
|
each DNS query, at the beginning of the process for that query, in order to add its own metadata to
|
||||||
context.
|
context.
|
||||||
|
|
||||||
The metadata collected will be available for all plugins, via the Context parameter provided in the
|
The metadata collected will be available for all plugins, via the Context parameter provided in the
|
||||||
@@ -17,7 +17,7 @@ metadata a plugin might be interested in.
|
|||||||
|
|
||||||
The metadata is added by setting a label with a value in the context. These labels should be named
|
The metadata is added by setting a label with a value in the context. These labels should be named
|
||||||
`plugin/NAME`, where **NAME** is something descriptive. The only hard requirement the *metadata*
|
`plugin/NAME`, where **NAME** is something descriptive. The only hard requirement the *metadata*
|
||||||
plugin enforces is that the labels contains a slash. See the documentation for
|
plugin enforces is that the labels contain a slash. See the documentation for
|
||||||
`metadata.SetValueFunc`.
|
`metadata.SetValueFunc`.
|
||||||
|
|
||||||
The value stored is a string. The empty string signals "no metadata". See the documentation for
|
The value stored is a string. The empty string signals "no metadata". See the documentation for
|
||||||
|
|||||||
Reference in New Issue
Block a user