MINOR: lua: add class listener
This class provides the access to the listener struct, it allows
some manipulations and retrieve informations.
diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst
index 07ade69..2bca4d0 100644
--- a/doc/lua-api/index.rst
+++ b/doc/lua-api/index.rst
@@ -597,6 +597,11 @@
Contain an array with the attached servers. Each server entry is an object of
type :ref:`server_class`.
+.. js:attribute:: Proxy.listeners
+
+ Contain an array with the attached listeners. Each listeners entry is an
+ object of type :ref:`listener_class`.
+
.. js:function:: Proxy.pause(px)
Pause the proxy. See the management socket documentation for more information.
@@ -811,6 +816,19 @@
:param class_server sv: A :ref:`server_class` which indicates the manipulated
server.
+.. _listener_class:
+
+Listener class
+==============
+
+.. js:function:: Listener.get_stats(ls)
+
+ Returns server statistics.
+
+ :param class_listener ls: A :ref:`listener_class` which indicates the
+ manipulated listener.
+ :returns: a key/value array containing stats
+
.. _concat_class:
Concat class