MXS-591 Fix documentation and change comment parameter type
This commit is contained in:
@ -11,7 +11,7 @@ comments when they are received by the server.
|
|||||||
[MyComment]
|
[MyComment]
|
||||||
type=filter
|
type=filter
|
||||||
module=comment
|
module=comment
|
||||||
inject=Comment to be injected
|
inject="Comment to be injected"
|
||||||
|
|
||||||
[MyService]
|
[MyService]
|
||||||
type=service
|
type=service
|
||||||
@ -40,15 +40,13 @@ Variables must be written in all caps.
|
|||||||
### Example 1 - Inject IP address of the connected client into statements
|
### Example 1 - Inject IP address of the connected client into statements
|
||||||
as comment.
|
as comment.
|
||||||
|
|
||||||
You want to see the IP addresses of the clients with the server so you
|
The following configuration adds the IP address of the client to the comment.
|
||||||
define filter to comment the into the statements they send.
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
[IPComment]
|
[IPComment]
|
||||||
type=filter
|
type=filter
|
||||||
module=comment
|
module=comment
|
||||||
inject=IP=$IP
|
inject="IP=$IP"
|
||||||
|
|
||||||
[MyService]
|
[MyService]
|
||||||
type=service
|
type=service
|
||||||
|
@ -42,7 +42,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
|
|||||||
NULL, /* Thread init. */
|
NULL, /* Thread init. */
|
||||||
NULL, /* Thread finish. */
|
NULL, /* Thread finish. */
|
||||||
{
|
{
|
||||||
{ CN_INJECT, MXS_MODULE_PARAM_STRING, NULL, MXS_MODULE_OPT_REQUIRED },
|
{ CN_INJECT, MXS_MODULE_PARAM_QUOTEDSTRING, NULL, MXS_MODULE_OPT_REQUIRED },
|
||||||
{ MXS_END_MODULE_PARAMS }
|
{ MXS_END_MODULE_PARAMS }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user