Introduced new generalized JSON-format for `top10` wordcount-2.2.0
authorKai Moritz <kai@juplo.de>
Sun, 23 Jun 2024 07:03:35 +0000 (09:03 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 23 Jun 2024 07:17:45 +0000 (09:17 +0200)
commit40a3767aeaa3bea06f1fc2ec3165218059cdc128
treee421d02d909861c0c7307440a62f5dc2fa7878ba
parente1f20111a6a16c6307e16658780beb24bd90ef1a
Introduced new generalized JSON-format for `top10`

* Added an attribute `type`, that denotes the type of the statistics.
* Introduces a common wording for the other attributes:
** Renamed `user` to `channel`.
** Renamed `word` to `key` (in the `key`/`counter`-pairing in the `Entry`).
* Adapted all services accordingly:
** `counter` generates statistics of the type `COUNTER`.
** `popular` generates statistics of the type `POPULAR`.
** `top10` generates `Ranking`s for _all_ types of statistics and hands
   the `type` through to its consumers.
** `query` is only intrested in rankings of the type `COUNTER`.
README.sh
counter
docker-compose.yml
popular
query
top10