okuda-seminar / log_service

Apache License 2.0
0 stars 0 forks source link

[Client] Implement Publisher #30

Closed nayuta-ai closed 1 month ago

nayuta-ai commented 1 month ago

Issue Number

29

Implementation Summary

Create a client to send logs to the RabbitMQ server.

Scope of Impact

Particular points to check

None

Test

$ make send_message
RABBITMQ_URL=amqp://guest:guest@localhost:5672/ go run ./cmd/client --log-level=debug --source-service=client --destination-service=server --request-type=POST --content="Hello World!"
2024/10/17 01:16:15 Sent a message: {"log_level":"debug","date":"2024-10-17T01:16:15.813662+09:00","source_service":"client","destination_service":"server","request_type":"POST","content":"Hello World!"}