russellcardullo / go-pingdom

No longer maintained: Pingdom API access from Go
MIT License
29 stars 75 forks source link

Add NewClientWithConfig method #42

Closed russellcardullo closed 5 years ago

russellcardullo commented 5 years ago

Adds NewClientWithConfig method which allows more customization of the Pingdom client used, such as supplying a custom http client with different timeout setting.

This replaces the existing NewClient and NewMultiUserClient method. Those methods are rewritten to call the new method and marked as deprecated.

Closes #35.