log middleware

This commit is contained in:
2025-09-29 09:14:39 +03:00
parent 49ffe9ae03
commit e15d56196d
27 changed files with 641 additions and 164 deletions

13
database/redis.go Normal file
View File

@@ -0,0 +1,13 @@
package database
import "github.com/redis/go-redis/v9"
var RedisClient *redis.Client
func ConnectRedis() {
RedisClient = redis.NewClient(&redis.Options{
Addr: "redis:6379",
Password: "",
DB: 0,
})
}