// NewHTTPDatabaseReader creates a Reader that downloads database updates via
// HTTP.
NewHTTPDatabaseReader creates a Reader that downloads database updates via
HTTP.
// NewHTTPDatabaseReader creates a Reader that downloads database updates via // HTTP .
func NewHTTPDatabaseReader(client *http.Client, config *geoipupdate.Config) Reader {
	return &HTTPDatabaseReader{
		client:            client,
		retryFor:          config.RetryFor,
		url:               config.URL,
		licenseKey:        config.LicenseKey,
		accountID:         config.AccountID,
		preserveFileTimes: config.PreserveFileTimes,
		verbose:           config.Verbose,
	}
}
func NewHTTPDatabaseReader ( client * http . Client , config * geoipupdate . Config ) Reader { return & HTTPDatabaseReader { client : client , retryFor : config . RetryFor , url : config . URL , licenseKey : config . LicenseKey , accountID : config . AccountID , preserveFileTimes : config . PreserveFileTimes , verbose : config . Verbose , } }
NewHTTPDatabaseReader creates a Reader that downloads database updates via
HTTP.
NewHTTPDatabaseReader creates a Reader that downloads database updates via HTTP .