]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua_fcn: add Patref:event_sub()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 27 Nov 2024 16:06:58 +0000 (17:06 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 29 Nov 2024 06:23:53 +0000 (07:23 +0100)
commit7ff9a1c341c4d9754fd8eddfae926639ff65c760
treee10b489abdf1eeb830aeb91f5a0ec1a63ae5a1e0
parent884dc6232ad821748d4358443202fef03f688d4c
MINOR: hlua_fcn: add Patref:event_sub()

Just like we did for server events, in this patch we expose the PAT_REF
event family (see "MINOR: event_hdl: add PAT_REF events") in Lua.

Unlike server events, Patref events don't provide additional event data,
and the registration can only take place from a Patref object (ie: not
globally).

Thanks to this commit it now becomes possible to trigger actions when
updates are performed on a map (or acl list) being monitor, without
the need to loop or use inefficient workarounds.
doc/lua-api/index.rst
src/hlua_fcn.c