I want to setup Database sharding like https://github.com/thiagopradi/octopus in Revel + Gorm(or any other ORM in Golang).

I will get db connection string in security filter (which was a custom filter, added after revel's param filter). Now I need to switch db connection in next custom filter called db filter

And also need to implement db connection pool in revel application start up.