Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
mfrigo | ab33d5788d |
|
@ -30,6 +30,9 @@ func NewStorage(cfg *viper.Viper) (Storage, error) {
|
||||||
case "mongodb":
|
case "mongodb":
|
||||||
s, err := NewMongoDBStorage(cfg)
|
s, err := NewMongoDBStorage(cfg)
|
||||||
return s, err
|
return s, err
|
||||||
|
case "psql":
|
||||||
|
s, err := NewPostgresqlStorage(cfg)
|
||||||
|
return s, err
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("storage type %v is not supported", storage_type)
|
return nil, fmt.Errorf("storage type %v is not supported", storage_type)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue