MINOR: sample: Rework gRPC converter code.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 4 Mar 2019 18:03:48 +0000 (19:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Mar 2019 10:04:23 +0000 (11:04 +0100)
commit756d97f20515fe3ad02d3dfbb2266e00adadecfc
tree31891609695138dada45e35201e77ecc780829ee
parent7c93e88d0c99baf32a5f1c80d911ead9ecc36649
MINOR: sample: Rework gRPC converter code.

For now on, "ungrpc" may take a second optional argument to provide
the protocol buffers types used to encode the field value to be extracted.
When absent the field value is extracted as a binary sample which may then
followed by others converters like "hex" which takes binary as input sample.
When this second argument is a type which does not match the one found by "ungrpc",
this field is considered as not found even if present.

With this patch we also remove the useless "varint" and "svarint" converters.

Update the documentation about "ungrpc" converters.
doc/configuration.txt
include/proto/protocol_buffers.h
include/types/protocol_buffers.h
src/arg.c
src/sample.c