Commit cb1ab96f authored by Geoff Simmons's avatar Geoff Simmons

rename the functions to just port() and addr()

parent 445b95a4
...@@ -43,7 +43,7 @@ varnish v1 -vcl { ...@@ -43,7 +43,7 @@ varnish v1 -vcl {
} }
sub vcl_init { sub vcl_init {
oob_probe.probe_port(default, foo, "${s2_port}"); oob_probe.port(default, foo, "${s2_port}");
} }
sub vcl_recv { sub vcl_recv {
......
...@@ -43,7 +43,7 @@ varnish v1 -vcl { ...@@ -43,7 +43,7 @@ varnish v1 -vcl {
} }
sub vcl_init { sub vcl_init {
oob_probe.probe_addr(default, foo, "${s2_addr}", "${s2_port}"); oob_probe.addr(default, foo, "${s2_addr}", "${s2_port}");
} }
sub vcl_recv { sub vcl_recv {
......
...@@ -115,7 +115,7 @@ insert_probe(struct backend *bp, VCL_PROBE probe, struct suckaddr *sa4, ...@@ -115,7 +115,7 @@ insert_probe(struct backend *bp, VCL_PROBE probe, struct suckaddr *sa4,
} }
VCL_VOID VCL_VOID
vmod_probe_port(VRT_CTX, VCL_BACKEND be, VCL_PROBE probe, VCL_STRING port) vmod_port(VRT_CTX, VCL_BACKEND be, VCL_PROBE probe, VCL_STRING port)
{ {
struct backend *bp; struct backend *bp;
struct suckaddr *sa4 = NULL, *sa6 = NULL; struct suckaddr *sa4 = NULL, *sa6 = NULL;
...@@ -139,7 +139,7 @@ vmod_probe_port(VRT_CTX, VCL_BACKEND be, VCL_PROBE probe, VCL_STRING port) ...@@ -139,7 +139,7 @@ vmod_probe_port(VRT_CTX, VCL_BACKEND be, VCL_PROBE probe, VCL_STRING port)
} }
VCL_VOID VCL_VOID
vmod_probe_addr(VRT_CTX, VCL_BACKEND be, VCL_PROBE probe, VCL_STRING host, vmod_addr(VRT_CTX, VCL_BACKEND be, VCL_PROBE probe, VCL_STRING host,
VCL_STRING port) VCL_STRING port)
{ {
struct backend *bp; struct backend *bp;
......
...@@ -18,10 +18,9 @@ backend host, or at a different host. The use case is for backend apps ...@@ -18,10 +18,9 @@ backend host, or at a different host. The use case is for backend apps
that provide a "health agent" or something similar, listening at a that provide a "health agent" or something similar, listening at a
network location that is different from the location of the main app. network location that is different from the location of the main app.
$Function VOID probe_port(BACKEND backend, PROBE probe, STRING port) $Function VOID port(BACKEND backend, PROBE probe, STRING port)
$Function VOID probe_addr(BACKEND backend, PROBE probe, STRING addr, $Function VOID addr(BACKEND backend, PROBE probe, STRING addr, STRING port)
STRING port)
$Function STRING version() $Function STRING version()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment