mirror of
https://github.com/hexolan/panels.git
synced 2026-03-26 12:40:21 +00:00
58 lines
1.0 KiB
Markdown
58 lines
1.0 KiB
Markdown
# Comment Service
|
|
|
|
## Event Documentation
|
|
|
|
* Events Produced:
|
|
* **Topic:** "``comment``" | **Schema:** "``CommentEvent``" protobuf
|
|
* Type: ``"created"`` | Data: ``Comment``
|
|
* Type: ``"updated"`` | Data: ``Comment``
|
|
* Type: ``"deleted"`` | Data: ``Comment``
|
|
|
|
* Events Consumed:
|
|
* **Topic:** "``post``" | **Schema:** "``PostEvent``" protobuf
|
|
* Type: ``"deleted"`` | Data: ``Post`` (only with ``Post.id`` attribute)
|
|
* **Topic:** "``user``" | **Schema:** "``UserEvent``" protobuf
|
|
* Type: ``"deleted"`` | Data: ``User``
|
|
|
|
## Configuration
|
|
|
|
### Environment Variables
|
|
|
|
**PostgreSQL:**
|
|
|
|
``POSTGRES_USER`` (Required)
|
|
|
|
* e.g. "postgres"
|
|
|
|
``POSTGRES_PASS`` (Required)
|
|
|
|
* e.g. "postgres"
|
|
|
|
``POSTGRES_HOST`` (Required)
|
|
|
|
* e.g. "localhost:5432"
|
|
|
|
``POSTGRES_DATABASE`` (Required)
|
|
|
|
* e.g. "postgres"
|
|
|
|
---
|
|
|
|
**Redis:**
|
|
|
|
``REDIS_HOST`` (Required)
|
|
|
|
* e.g. "localhost:6379"
|
|
|
|
``REDIS_PASS`` (Required)
|
|
|
|
* e.g. "redis"
|
|
|
|
---
|
|
|
|
**Kafka:**
|
|
|
|
``KAFKA_BROKERS`` (Required)
|
|
|
|
* e.g. "localhost:9092" or "localhost:9092,localhost:9093"
|