datasource: Move datasources into their own packages.

This commit is contained in:
Alex Crawford
2014-07-30 13:56:36 -07:00
parent 49ac083af5
commit 8566a2c118
11 changed files with 54 additions and 33 deletions

View File

@@ -57,6 +57,10 @@ type HttpClient struct {
client *http.Client
}
type Getter interface {
GetRetry(string) ([]byte, error)
}
func NewHttpClient() *HttpClient {
hc := &HttpClient{
MaxBackoff: time.Second * 5,