liampauling / gofair

Lightweight golang wrapper for Betfair API-NG (streaming in dev)
7 stars 10 forks source link

Add ability to load certs from environment #3

Closed keithjeb closed 5 years ago

keithjeb commented 5 years ago

I'm deploying this library on a serverless platform, and as a consequence putting certs/keys on disk is awkward.

Replacing the call to LoadX509KeyPair with X509KeyPair if the key/cert config variables don't look like paths.

liampauling commented 5 years ago

Now merged, thanks.

Out of interest how you finding this library? I created it as an excuse to learn some go but haven't touched it since so likely to be a bit buggy.

keithjeb commented 5 years ago

It's not yet 'in production' but for the tests I'm doing so far it works well. I'm only using limited features though ( scraping prices every 10 minutes to look for sharbs)