<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/haproxy.git/doc/lua-api, branch master</title>
<subtitle>github.com: haproxy/haproxy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/'/>
<entry>
<title>DOC: lua: fix core.{proxies,frontends,backends} visibility</title>
<updated>2023-05-12T07:45:30+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-05-11T15:31:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=2a29571c11a5c4d12192f355d1475b0ee9f1142d'/>
<id>2a29571c11a5c4d12192f355d1475b0ee9f1142d</id>
<content type='text'>
Despite the doc not mentionning it, core.{proxies,frontends,backends}
methods are also available from init context.
(through core.register_init() functions)

Updating the documentation to reflect this possibility.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Despite the doc not mentionning it, core.{proxies,frontends,backends}
methods are also available from init context.
(through core.register_init() functions)

Updating the documentation to reflect this possibility.
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: hlua_fcn: add Queue class</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-05-03T15:03:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=86fb22c5572a709500cafe6876d251f0744d0184'/>
<id>86fb22c5572a709500cafe6876d251f0744d0184</id>
<content type='text'>
Adding a new lua class: Queue.

This class provides a generic FIFO storage mechanism that may be shared
between multiple lua contexts to easily pass data between them, as stock
Lua doesn't provide easy methods for passing data between multiple
coroutines.

New Queue object may be obtained using core.queue()
(it works like core.concat() for a concat Class)

Lua documentation was updated (including some usage examples)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding a new lua class: Queue.

This class provides a generic FIFO storage mechanism that may be shared
between multiple lua contexts to easily pass data between them, as stock
Lua doesn't provide easy methods for passing data between multiple
coroutines.

New Queue object may be obtained using core.queue()
(it works like core.concat() for a concat Class)

Lua documentation was updated (including some usage examples)
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: hlua: expose proxy mailers</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-04-26T17:02:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=717a38d135ffa99009d3abefc8ab4f36df9e8cee'/>
<id>717a38d135ffa99009d3abefc8ab4f36df9e8cee</id>
<content type='text'>
Proxy mailers, which are configured using "email-alert" directives
in proxy sections from the configuration, are now being exposed
directly in lua thanks to the proxy:get_mailers() method which
returns a class containing the various mailers settings if email
alerts are configured for the given proxy (else nil is returned).

Both the class and the proxy method were marked as LEGACY since this
feature relies on mailers configuration, and the goal here is to provide
the last missing bits of information to lua scripts in order to make
them capable of sending email alerts instead of relying on the soon-to-
be deprecated mailers implementation based on checks (see src/mailers.c)

Lua documentation was updated accordingly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Proxy mailers, which are configured using "email-alert" directives
in proxy sections from the configuration, are now being exposed
directly in lua thanks to the proxy:get_mailers() method which
returns a class containing the various mailers settings if email
alerts are configured for the given proxy (else nil is returned).

Both the class and the proxy method were marked as LEGACY since this
feature relies on mailers configuration, and the goal here is to provide
the last missing bits of information to lua scripts in order to make
them capable of sending email alerts instead of relying on the soon-to-
be deprecated mailers implementation based on checks (see src/mailers.c)

Lua documentation was updated accordingly.
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: mailers/hlua: disable email sending from lua</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-04-21T15:32:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=5bed48fec8aa99ee6e1610ad99a3e57f7a8346f2'/>
<id>5bed48fec8aa99ee6e1610ad99a3e57f7a8346f2</id>
<content type='text'>
Exposing a new hlua function, available from body or init contexts, that
forcefully disables the sending of email alerts even if the mailers are
defined in haproxy configuration.

This will help for sending email directly from lua.
(prevent legacy email sending from intefering with lua)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Exposing a new hlua function, available from body or init contexts, that
forcefully disables the sending of email alerts even if the mailers are
defined in haproxy configuration.

This will help for sending email directly from lua.
(prevent legacy email sending from intefering with lua)
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: hlua/event_hdl: expose SERVER_CHECK event</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-03-30T13:53:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=0bd53b2152d7affeb82b934ef3505b02b59ebeec'/>
<id>0bd53b2152d7affeb82b934ef3505b02b59ebeec</id>
<content type='text'>
Exposing SERVER_CHECK event through the lua API.

New lua class named ServerEventCheck was added to provide additional
data for SERVER_CHECK event.

Lua documentation was updated accordingly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Exposing SERVER_CHECK event through the lua API.

New lua class named ServerEventCheck was added to provide additional
data for SERVER_CHECK event.

Lua documentation was updated accordingly.
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: hlua: expose SERVER_ADMIN event</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-04-26T09:27:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=948dd3ddfbe2c66238614694072bacd748108a57'/>
<id>948dd3ddfbe2c66238614694072bacd748108a57</id>
<content type='text'>
Exposing SERVER_ADMIN event in lua and updating the documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Exposing SERVER_ADMIN event in lua and updating the documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: hlua: expose SERVER_STATE event</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-04-12T13:47:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=c99f3adf10df63cf8bb92b63a0aaa076d3f976a6'/>
<id>c99f3adf10df63cf8bb92b63a0aaa076d3f976a6</id>
<content type='text'>
Exposing SERVER_STATE event in lua and updating the documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Exposing SERVER_STATE event in lua and updating the documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: lua/event: add ServerEvent class header</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-04-17T15:24:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=c4ae8906b9e003ad29923562b406b533c2138e81'/>
<id>c4ae8906b9e003ad29923562b406b533c2138e81</id>
<content type='text'>
This is to make ServerEvent class easier to understand,
some additional info related to ServerEvent class may be
included here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is to make ServerEvent class easier to understand,
some additional info related to ServerEvent class may be
included here.
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: hlua_fcn: add Proxy.get_srv_act() and Proxy.get_srv_bck()</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-04-03T09:00:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=fc84553df8127c37105db8515feb36545d6beeb2'/>
<id>fc84553df8127c37105db8515feb36545d6beeb2</id>
<content type='text'>
Proxy.get_srv_act: number of active servers that are eligible for LB
Proxy.get_srv_bck: number of backup servers that are eligible for LB
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Proxy.get_srv_act: number of active servers that are eligible for LB
Proxy.get_srv_bck: number of backup servers that are eligible for LB
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: hlua_fcn: add Server.get_pend_conn() and Server.get_cur_sess()</title>
<updated>2023-05-05T14:28:32+00:00</updated>
<author>
<name>Aurelien DARRAGON</name>
<email>adarragon@haproxy.com</email>
</author>
<published>2023-04-03T08:43:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=fc759b4ac22a3599c308425799af581365e8e248'/>
<id>fc759b4ac22a3599c308425799af581365e8e248</id>
<content type='text'>
Server.get_pend_conn: number of pending connections to the server
Server.get_cur_sess: number of current sessions handled by the server

Lua documentation was updated accordingly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Server.get_pend_conn: number of pending connections to the server
Server.get_cur_sess: number of current sessions handled by the server

Lua documentation was updated accordingly.
</pre>
</div>
</content>
</entry>
</feed>
