Skip to content

Commit

Permalink
cfg_db: docs - removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent 8ac7b71 commit b58ac92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/modules/cfg_db/doc/cfg_db.xml
Expand Up @@ -42,8 +42,8 @@
<para>
A parameter is uniquely identified by a <emphasis>group_name</emphasis> plus a
<emphasis>name</emphasis>, which is used by the driver to check if a value can be found.
Because configuration parameters may be spread in many tables, a translation table
is used to indicate where to start searching. Multiple look-up tables may be
Because configuration parameters may be spread in many tables, a translation table
is used to indicate where to start searching. Multiple look-up tables may be
defined for single parameter, tables are searched in the first round by exact match
until parameter is found, all tables listed with wildcard (asterisk) in group name
are searched in the second round. If a parameter is not found then its value is left unchanged.
Expand All @@ -63,7 +63,7 @@

<section id="cfg_db.dep">
<title>Dependencies</title>

<para>
A loaded database module.
</para>
Expand All @@ -85,27 +85,27 @@
my|use_rtp_proxy|cfg_my|my_group_name|my_name|my_value
*|*|||| ; matches all param ids, points to tables defined in row &lt;default&gt;
&lt;default&gt;||cfg_var|group_name|name|value ; default cfg_table* values

cfg_custom table:
group_name|name|value_type|min_value|max_value|description
my|route_addr|S|||Routing address
my|use_rtp_proxy|I|0|1|Use RTP proxy

cfg_var table:
group_name|my_name|value
core|debug|4

cfg_my table:
my_group_name|my_name|my_value
my|route_addr|127.0.0.1
my|use_rtp_proxy|1

cfg_dns table:
group_name|name|value
dns|use_dst_blocklist|1
dns|dst_blocklist_mem|1024
dns|dst_blocklist_expire|60

</programlisting>

</example>
Expand Down
8 changes: 4 additions & 4 deletions src/modules/cfg_db/doc/cfg_db_params.xml
Expand Up @@ -14,7 +14,7 @@
<section id="db_url">
<title><varname>db_url</varname> (string)</title>
<para>
Default database URL.
Default database URL.
</para>
<para>
The format is:
Expand Down Expand Up @@ -46,15 +46,15 @@ modparam("cfg_db", "db_url", "mysql://&ser;:123@127.0.0.1:12345/&ser;");
The other keyword is asterisk <emphasis>*</emphasis> which matches
all parameters and will be used if parameter is not
explicitly mentioned.
</para>
</para>
</section>
<section id="custom_tbl">
<title><varname>custom_tbl</varname> (string) := "cfg_custom"</title>
<para>
Name of table used for extra param declaration (group_name, name,
type, min/max value, description).
</para>
</section>
</para>
</section>
</section>


0 comments on commit b58ac92

Please sign in to comment.