Pass database to json-rpc methods


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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s