yanic/output
lemoer a76df9b9ac
[TASK] add output raw-jsonl
PR at github: #199

This output takes the respondd response as sent by the node and includes
it in a Line-Delimited JSON (JSONL) document. In this format each line
can be interpreted as separate JSON element, which is useful for json
streaming. The first line is json object holding the timestamp and
version of the file. Then there follows one line for each node, each
containing a json object.

An example output looks like this:

    {"version":1,"updated_at":"2021-03-27T21:58:48+0100","format":"raw-nodes-jsonl"}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    ...

Signed-off-by: Leonardo Mörlein <git@irrelefant.net>
2021-03-29 16:12:26 +02:00
..
all [TASK] add output raw-jsonl 2021-03-29 16:12:26 +02:00
filter black lives matter 2020-06-17 10:14:22 +02:00
geojson nodeinfo without empty values 2021-03-24 08:57:46 +01:00
meshviewer nodeinfo without empty values 2021-03-24 08:57:46 +01:00
meshviewer-ffrgb nodeinfo without empty values 2021-03-24 08:57:46 +01:00
nodelist nodeinfo without empty values 2021-03-24 08:57:46 +01:00
raw nodeinfo without empty values 2021-03-24 08:57:46 +01:00
raw-jsonl [TASK] add output raw-jsonl 2021-03-29 16:12:26 +02:00
output.go [TASK] improve output (filtering, fix links type, new outputs nodelist for freifunkapi and meshviewer-ffrgb v10 NextGen) - #63 2017-11-01 14:27:39 +01:00
output_test.go [TASK] improve output (filtering, fix links type, new outputs nodelist for freifunkapi and meshviewer-ffrgb v10 NextGen) - #63 2017-11-01 14:27:39 +01:00