diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-26 15:36:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-26 15:36:28 +0100 |
commit | dbd075fa4c499352420e5127966eafb667df0fd4 (patch) | |
tree | 90c3b452f439961adc44ecfc4f6a874be8a7f1a1 /doc/markdown | |
parent | 782759758bfc4a2d070a96bd0ae28cceba74ff5f (diff) | |
download | rspamd-dbd075fa4c499352420e5127966eafb667df0fd4.tar.gz rspamd-dbd075fa4c499352420e5127966eafb667df0fd4.zip |
Add notes about 'require'.
Diffstat (limited to 'doc/markdown')
-rw-r--r-- | doc/markdown/lua/index.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/markdown/lua/index.md b/doc/markdown/lua/index.md index d995306b2..2bb154556 100644 --- a/doc/markdown/lua/index.md +++ b/doc/markdown/lua/index.md @@ -235,6 +235,8 @@ Maps hold dynamically loaded data like lists or ip trees. It is possible to use Here is a sample of using maps from lua API: ~~~lua +local rspamd_logger = require "rspamd_logger" + -- Add two maps in configuration section local hash_map = rspamd_config:add_hash_map('file:///path/to/file', 'sample map') local radix_tree = rspamd_config:add_radix_map('http://somehost.com/test.dat', 'sample ip map') |