Qo'shildi: Docker konfiguratsiyasi yangilandi, .env va .gitignore fayllari yaratildi, Redis va muhit o'zgaruvchilari qo'shildi.

This commit is contained in:
A'zamov Samandar
2025-04-21 13:08:09 +05:00
parent 9b61f2f37d
commit 09ea20b088
15 changed files with 286 additions and 11 deletions

View File

@@ -2,12 +2,13 @@ package rabbitmq
import (
"log"
"os"
"github.com/streadway/amqp"
)
func Connect() (*amqp.Connection, *amqp.Channel, error) {
conn, err := amqp.Dial("amqp://guest:guest@rabbitmq:5672/")
conn, err := amqp.Dial(os.Getenv("RABBITMQ_URL"))
if err != nil {
return nil, nil, err
}