Pass database to json-rpc methods
So we already had a discussion with a lot of insights on the normal handler procedure, however, I am wondering what the best approach for json-rpc server is (using http://ift.tt/1eqfYXT).
Any ideas or reference projects which handle database access with the gorilla json-rpc without a global variable?
Submitted February 26, 2017 at 10:41PM by ArghusSquare
via reddit http://ift.tt/2mzbnid