-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename geolocate enginelocate (#1263)
I am soon going to start addressing the underlying issue described by ooni/probe#2531. But, before doing that, I have noticed that the packages I need to edit to this end are the following: ``` ./internal/engine ./internal/geolocate ./internal/sessionresolver ``` Now, these three packages work in unison to provide an `engine.Session` and they should *sort* together. However, I would like also to avoid nesting because I think all of them servers an ~independent purpose and geolocate and sessionresolver are possibly building blocks to refactor or reimplement the engine. For this reason, I have chosen to rename them such that it is clear they are the engine and supporting packages. This diff addresses the first half of the change by renaming the geolocate package. While there acknowledge that the script to rename packages was broken and decide to ditch it for good rather than entering into the quest of fixing it. I would probably have spent lots of time trying in doing that, and my time is better spent otherwise. (I remember the official package renaming tool did not support go modules, but probably it does and I should look into giving it another spin.)
- Loading branch information
1 parent
90366e5
commit 8c0646a
Showing
20 changed files
with
40 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/geolocate/cloudflare.go → internal/enginelocate/cloudflare.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/cloudflare_test.go → internal/enginelocate/cloudflare_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/fake_test.go → internal/enginelocate/fake_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"net/http" | ||
|
4 changes: 2 additions & 2 deletions
4
internal/geolocate/geolocate.go → internal/enginelocate/geolocate.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/geolocate/geolocate_test.go → internal/enginelocate/geolocate_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/invalid_test.go → internal/enginelocate/invalid_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/iplookup.go → internal/enginelocate/iplookup.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/iplookup_test.go → internal/enginelocate/iplookup_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/mmdblookup.go → internal/enginelocate/mmdblookup.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"github.com/ooni/probe-cli/v3/internal/geoipx" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/resolverlookup.go → internal/enginelocate/resolverlookup.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/resolverlookup_test.go → internal/enginelocate/resolverlookup_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/stun_test.go → internal/enginelocate/stun_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
2 changes: 1 addition & 1 deletion
2
internal/geolocate/ubuntu_test.go → internal/enginelocate/ubuntu_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package geolocate | ||
package enginelocate | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.