recipes2/internal/storage/storage.go

25 lines
364 B
Go
Raw Normal View History

2024-01-16 21:10:29 +02:00
package storage
import (
"errors"
"recipes/internal/storage/minio"
"recipes/internal/storage/postgresql"
"recipes/internal/storage/redis"
)
var (
ErrNotFound = errors.New("not found")
)
type Storage struct {
db postgresql.Database
cache redis.Cache
objStorage minio.Storage
}
func New() *Storage {
var storage *Storage
return storage
}