MINOR: checks: Support custom functions to eval a tcp-check expect rules
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Apr 2020 13:24:06 +0000 (15:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:38 +0000 (09:39 +0200)
commit9e6ed1598e281c08d1ec92a996d4e5b18e6cb1e8
treefff87ed25567d244ae4a4cc2a61fb9c37d374e7c
parent206368dd06e05f9b287dfff68bda0209a168538b
MINOR: checks: Support custom functions to eval a tcp-check expect rules

It is now possible to set a custom function to evaluate a tcp-check expect
rule. It is an internal and not documentd option because the right pointer of
function must be set and it is not possible to express it in the
configuration. It will be used to convert some protocol healthchecks to
tcp-checks.

Custom functions must have the following signature:

  enum tcpcheck_eval_ret (*custom)(struct check *, struct tcpcheck_rule *, int);
include/types/checks.h
src/checks.c