Exemple #1
0
func init() {
	storage.Register(MongoDBDriverName, &storage.RegisteredDriver{
		New: newMongoDriver,
		Flags: []cli.Flag{
			cli.StringFlag{Name: mongoURLFlag, Value: "mongodb://localhost:27017/Otsimo", Usage: "MongoDB url", EnvVar: "MONGODB_URL"},
		},
	})
}
Exemple #2
0
func init() {
	storage.Register(DiskDriverName, &storage.RegisteredDriver{
		New: newDiskDriver,
		Flags: []cli.Flag{
			cli.StringFlag{Name: "disk-path", Value: "./disk", Usage: "the path where files are stored", EnvVar: "DISK_PATH"},
			cli.StringFlag{Name: "disk-static-url", Value: "http://127.0.0.1:18851/public", Usage: "the static files root url", EnvVar: "DISK_STATIC_URL"},
		},
	})
}