[+] create branch mika

This commit is contained in:
mfrigo 2023-09-06 13:36:48 +02:00
parent e8c2fbb768
commit ab33d5788d
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ func NewStorage(cfg *viper.Viper) (Storage, error) {
case "mongodb":
s, err := NewMongoDBStorage(cfg)
return s, err
case "psql":
s, err := NewPostgresqlStorage(cfg)
return s, err
default:
return nil, fmt.Errorf("storage type %v is not supported", storage_type)
}