Lines Matching refs:module
6 This basic example shows how to create simple python module which will pass on the requests to the …
8 How to enable python module
10 If you look into unbound configuration file, you can find the option `module-config` which specifie…
13 module-config: "validator python iterator"
15 …nbound calls modules starting from leftmost - the validator *(it is the first module on the list)*.
16 …es not know the answer *(it can only validate)*, thus it will pass on the event to the next module.
17 Next module is python which can
20 …When python module generates the response unbound calls validator. Validator grabs the answer and …
23 …es the query, Unbound informs python module (event :data:`module_event_moddone`). In the end, when…
25 Note that the python module is called with :data:`module_event_pass` event, because new DNS event w…
29 module-config: "python validator iterator"
31 Python module is the first module here, so it's invoked with :data:`module_event_new` event *(new q…
33 On Python module initialization, module loads script from `python-script` option::
37 Simple python module step by step
44 Initialize module internals, like database etc.
45 Called just once on module load.
47 :param id: module identifier (integer)
53 …log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, mod_env['s…
59 Initialize module internals, like database etc.
60 Called just once on module load.
66 :param id: module identifier (integer)
67 :param env: :class:`module_env` module environment
72 …log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, env.cfg.port, mod_en…
78 Deinitialize module internals.
79 Called just once on module unload.
81 :param id: module identifier (integer)
86 log_info("pythonmod: deinit called, module id is %d" % id)
95 :param id: module identifier (integer)
114 :param id: module identifier (integer)
146 Moreover, compulsory functions called on appropriate module events allows to handle almost