Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehditeymorian/etefagh
HTTP server receives events and publishes them to STAN
https://github.com/mehditeymorian/etefagh
echo jaeger mongodb nats nats-streaming opentelemetry protobuf redis zap
Last synced: about 2 months ago
JSON representation
HTTP server receives events and publishes them to STAN
- Host: GitHub
- URL: https://github.com/mehditeymorian/etefagh
- Owner: mehditeymorian
- Created: 2021-10-13T06:03:36.000Z (over 3 years ago)
- Default Branch: dev-ci
- Last Pushed: 2021-11-04T18:26:33.000Z (about 3 years ago)
- Last Synced: 2024-06-20T12:41:19.605Z (7 months ago)
- Topics: echo, jaeger, mongodb, nats, nats-streaming, opentelemetry, protobuf, redis, zap
- Language: Go
- Homepage:
- Size: 294 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Etefagh
Publishes events to Nats Streaming(STAN) synchornously and asynchronously. Cache events's publish-state using Redis and Store events using MongoDB.
![Structure](https://github.com/mehditeymorian/Etefagh/blob/main/assets/ETEFAGH.jpg)### Event Model
```golang
// Event model
type Event struct {
EventType string `json:"event_type"`
Description string `json:"description"`
Priority int `json:"priority"`
Payload string `json:"payload"`
}
```### Protobuf
```protobuf
message Event {
string eventType = 1;
string description = 2;
int32 priority = 3;
string payload = 4;
}
```### How to Run
Use [docker-compose.yaml](https://github.com/mehditeymorian/Etefagh/blob/main/deployments/docker-compose.yaml) file to run containers.- Up: `docker-compose -f PATH/deployments/docker-compose.yaml up --build`
- Down: `docker-compose -f PATH/deployments/docker-compose.yaml down`### Links
| Name | Link |
| ----------- | ----------- |
| Jaeger | localhost:16686 |
| Swagger | localhost:3000/swagger/index.html#/ |