1
1
mirror of https://github.com/wader/fq.git synced 2024-12-30 17:13:22 +03:00
fq/format/avro
Mattias Wadman 8e0dde03d0 decode: Support multiple format args and some rename and refactor
This will allow passing both cli options and format options to sub decoder.
Ex: pass keylog option to a tls decoder when decoding a pcap.
Ex: pass decode options to a format inside a http body inside a pcap.

Add ArgAs method to lookup argument based on type. This also makes the format
decode function have same signature as sub decoders in the decode API.

This change decode.Format a bit:
DecodeFn is now just func(d *D) any
DecodeInArg renamed to DefaultInArg
2023-02-18 21:38:51 +01:00
..
decoders decode: More type safe API and split scalar into multiple types 2022-12-14 16:23:58 +01:00
schema fq: Use go 1.18 2022-05-20 15:23:16 +02:00
testdata doc,help: Nicer format help and move help tests into each format 2022-09-22 23:07:58 +02:00
avro_ocf.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avro_ocf.md doc,help: Nicer format help and move help tests into each format 2022-09-22 23:07:58 +02:00