Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use new metadata and download endpoints #286

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@

* `geoipupdate` now supports retrying on more types of errors
such as HTTP2 INTERNAL_ERROR.
* `HTTPReader` no longer retries on HTTP errors and therefore
`retryFor` was removed from `NewHTTPReader`.
* Now `geoipupdate` doesn't requires the user to specify the config file
even if all the other arguments are set via the environment variables.
Reported by jsf84ksnf. GitHub #284.
* `pkg/goipupdate/database` has been rewritten into `pkg/geoipupdate/download`.
This new package changes the update behaviour of the tool:
1. It will first request edition information from a newly introduced metadata endpoint.
2. Compare the result with existing editions and decide which edition needs to be updated.
3. Then download individual editions from a newly introduced download endpoint.

## 6.1.0 (2024-01-09)

Expand Down
95 changes: 0 additions & 95 deletions cmd/geoipupdate/end_to_end_test.go

This file was deleted.

6 changes: 5 additions & 1 deletion cmd/geoipupdate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ func main() {
log.Printf("Using database directory %s", config.DatabaseDirectory)
}

client := geoipupdate.NewClient(config)
client, err := geoipupdate.NewClient(config)
if err != nil {
log.Fatalf("Error initializing download client: %s", err)
}

if err = client.Run(context.Background()); err != nil {
log.Fatalf("Error retrieving updates: %s", err)
}
Expand Down
166 changes: 0 additions & 166 deletions pkg/geoipupdate/database/http_reader.go

This file was deleted.

Loading
Loading