refactor: move more commands to internal/cmd (#207)

* refactor: move more commands to internal/cmd

Part of https://github.com/ooni/probe/issues/1335.

We would like all commands to be at the same level of engine
rather than inside engine (now that we can do it).

* fix: update .gitignore

* refactor: also move jafar outside engine

* We should be good now?
This commit is contained in:
Simone Basso 2021-02-03 12:23:15 +01:00 committed by GitHub
parent 6351d898d6
commit 4eeadd06a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
85 changed files with 72 additions and 65 deletions

6
.gitignore vendored
View File

@ -2,9 +2,15 @@
/*.jsonl /*.jsonl
/*.tar.gz /*.tar.gz
/*.zip /*.zip
/apitool
/apitool.exe
/coverage.cov /coverage.cov
/miniooni /miniooni
/miniooni.exe /miniooni.exe
/oohelper
/oohelper.exe
/oohelperd
/oohelperd.exe
/ooniprobe /ooniprobe
/ooniprobe.exe /ooniprobe.exe
/ooniprobe_checksums.txt /ooniprobe_checksums.txt

View File

@ -13,7 +13,7 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/utils" "github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/utils"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/shellx" "github.com/ooni/probe-cli/v3/internal/engine/shellx"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
) )

4
internal/cmd/README.md Normal file
View File

@ -0,0 +1,4 @@
# Directory github.com/ooni/probe-cli/internal/cmd
This directory contains the source code for the CLI tools we build
but we don't want to expose to the outside world.

View File

@ -17,8 +17,8 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/atomicx" "github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/kvstore" "github.com/ooni/probe-cli/v3/internal/engine/kvstore"
"github.com/ooni/probe-cli/v3/internal/engine/netx" "github.com/ooni/probe-cli/v3/internal/engine/netx"
"github.com/ooni/probe-cli/v3/internal/engine/probeservices" "github.com/ooni/probe-cli/v3/internal/engine/probeservices"
"github.com/ooni/probe-cli/v3/internal/engine/version" "github.com/ooni/probe-cli/v3/internal/engine/version"

1
internal/cmd/jafar/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/badproxy.pem

View File

@ -9,7 +9,7 @@ import (
"testing" "testing"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/flagx" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/flagx"
) )
func TestStringArray(t *testing.T) { func TestStringArray(t *testing.T) {

View File

@ -8,7 +8,7 @@ import (
"net/http" "net/http"
"testing" "testing"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/uncensored" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/uncensored"
) )
func TestPass(t *testing.T) { func TestPass(t *testing.T) {

View File

@ -14,9 +14,9 @@ import (
"time" "time"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/resolver" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/resolver"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/shellx" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/uncensored"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/uncensored" "github.com/ooni/probe-cli/v3/internal/engine/shellx"
) )
func init() { func init() {

View File

@ -3,8 +3,8 @@
package iptables package iptables
import ( import (
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/shellx"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex" "github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/internal/engine/shellx"
) )
type linuxShell struct{} type linuxShell struct{}

View File

@ -18,15 +18,15 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/apex/log/handlers/cli" "github.com/apex/log/handlers/cli"
"github.com/miekg/dns" "github.com/miekg/dns"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/badproxy" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/badproxy"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/flagx" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/flagx"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/httpproxy" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/httpproxy"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/iptables" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/iptables"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/resolver" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/resolver"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/shellx" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/tlsproxy"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/tlsproxy" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/uncensored"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/uncensored"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex" "github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/internal/engine/shellx"
) )
var ( var (

View File

@ -6,8 +6,8 @@ import (
"runtime" "runtime"
"testing" "testing"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/iptables" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/iptables"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/shellx" "github.com/ooni/probe-cli/v3/internal/engine/shellx"
) )
func ensureWeStartOverWithIPTables() { func ensureWeStartOverWithIPTables() {

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"github.com/miekg/dns" "github.com/miekg/dns"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/uncensored" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/uncensored"
) )
func TestPass(t *testing.T) { func TestPass(t *testing.T) {

View File

@ -7,7 +7,7 @@ import (
"sync" "sync"
"testing" "testing"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/jafar/uncensored" "github.com/ooni/probe-cli/v3/internal/cmd/jafar/uncensored"
) )
func TestPass(t *testing.T) { func TestPass(t *testing.T) {

View File

@ -13,7 +13,7 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/experiment/webconnectivity" "github.com/ooni/probe-cli/v3/internal/engine/experiment/webconnectivity"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex" "github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/internal/engine/netx" "github.com/ooni/probe-cli/v3/internal/engine/netx"
"github.com/ooni/probe-cli/v3/internal/engine/version" "github.com/ooni/probe-cli/v3/internal/engine/version"

View File

@ -8,7 +8,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/oohelper/internal" "github.com/ooni/probe-cli/v3/internal/cmd/oohelper/internal"
) )
func TestMakeTCPEndpoints(t *testing.T) { func TestMakeTCPEndpoints(t *testing.T) {

View File

@ -10,7 +10,7 @@ import (
"net/http" "net/http"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/oohelper/internal" "github.com/ooni/probe-cli/v3/internal/cmd/oohelper/internal"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex" "github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/internal/engine/netx" "github.com/ooni/probe-cli/v3/internal/engine/netx"
) )

View File

@ -8,7 +8,7 @@ import (
"sync" "sync"
"testing" "testing"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/oohelperd/internal" "github.com/ooni/probe-cli/v3/internal/cmd/oohelperd/internal"
) )
func TestHTTPDoWithInvalidURL(t *testing.T) { func TestHTTPDoWithInvalidURL(t *testing.T) {

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/oohelperd/internal" "github.com/ooni/probe-cli/v3/internal/cmd/oohelperd/internal"
"github.com/ooni/probe-cli/v3/internal/engine/netx/resolver" "github.com/ooni/probe-cli/v3/internal/engine/netx/resolver"
) )

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/cmd/oohelperd/internal" "github.com/ooni/probe-cli/v3/internal/cmd/oohelperd/internal"
"github.com/ooni/probe-cli/v3/internal/engine/netx" "github.com/ooni/probe-cli/v3/internal/engine/netx"
) )

View File

@ -2,9 +2,7 @@
/.vscode /.vscode
/apitool /apitool
/asn.mmdb /asn.mmdb
/badproxy.pem
/ca-bundle.pem /ca-bundle.pem
/cmd/jafar/badproxy.pem
/country.mmdb /country.mmdb
/example.org /example.org
/jafar /jafar

View File

@ -1,3 +0,0 @@
# Directory github.com/ooni/probe-engine/cmd
This directory contains the source code for the CLI tools we build.

View File

@ -16,7 +16,7 @@ import (
"time" "time"
"github.com/ooni/probe-cli/v3/internal/engine/experiment/urlgetter" "github.com/ooni/probe-cli/v3/internal/engine/experiment/urlgetter"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/internal/randx" "github.com/ooni/probe-cli/v3/internal/engine/internal/randx"
"github.com/ooni/probe-cli/v3/internal/engine/model" "github.com/ooni/probe-cli/v3/internal/engine/model"
"github.com/ooni/probe-cli/v3/internal/engine/netx" "github.com/ooni/probe-cli/v3/internal/engine/netx"

View File

@ -13,7 +13,7 @@ import (
"time" "time"
"github.com/ooni/probe-cli/v3/internal/engine/atomicx" "github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex" "github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/internal/engine/legacy/netxlogger" "github.com/ooni/probe-cli/v3/internal/engine/legacy/netxlogger"
"github.com/ooni/probe-cli/v3/internal/engine/legacy/oonidatamodel" "github.com/ooni/probe-cli/v3/internal/engine/legacy/oonidatamodel"

View File

@ -10,7 +10,7 @@ import (
"net/http/cookiejar" "net/http/cookiejar"
"net/url" "net/url"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex" "github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/internal/engine/netx" "github.com/ooni/probe-cli/v3/internal/engine/netx"
"github.com/ooni/probe-cli/v3/internal/engine/netx/errorx" "github.com/ooni/probe-cli/v3/internal/engine/netx/errorx"

View File

@ -11,7 +11,7 @@ import (
"github.com/ooni/probe-cli/v3/internal/engine/atomicx" "github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/experiment/urlgetter" "github.com/ooni/probe-cli/v3/internal/engine/experiment/urlgetter"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
) )
func TestRunnerWithInvalidURLScheme(t *testing.T) { func TestRunnerWithInvalidURLScheme(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"github.com/ooni/probe-cli/v3/internal/engine/geolocate" "github.com/ooni/probe-cli/v3/internal/engine/geolocate"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
"github.com/ooni/probe-cli/v3/internal/engine/model" "github.com/ooni/probe-cli/v3/internal/engine/model"
"github.com/ooni/probe-cli/v3/internal/engine/netx/errorx" "github.com/ooni/probe-cli/v3/internal/engine/netx/errorx"
) )

View File

@ -12,7 +12,7 @@ import (
"time" "time"
"github.com/ooni/probe-cli/v3/internal/engine/experiment/webconnectivity/internal" "github.com/ooni/probe-cli/v3/internal/engine/experiment/webconnectivity/internal"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/model" "github.com/ooni/probe-cli/v3/internal/engine/model"
"github.com/ooni/probe-cli/v3/internal/engine/netx/archival" "github.com/ooni/probe-cli/v3/internal/engine/netx/archival"
) )

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"net/http" "net/http"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
) )
type avastResponse struct { type avastResponse struct {

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
) )
func TestIPLookupWorksUsingAvast(t *testing.T) { func TestIPLookupWorksUsingAvast(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
) )
func ipConfigIPLookup( func ipConfigIPLookup(

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
) )
func TestIPLookupWorksUsingIPConfig(t *testing.T) { func TestIPLookupWorksUsingIPConfig(t *testing.T) {

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"net/http" "net/http"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
) )
type ipInfoResponse struct { type ipInfoResponse struct {

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
) )
func TestIPLookupWorksUsingIPInfo(t *testing.T) { func TestIPLookupWorksUsingIPInfo(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/pion/stun" "github.com/pion/stun"
) )

View File

@ -5,7 +5,7 @@ import (
"encoding/xml" "encoding/xml"
"net/http" "net/http"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
) )
type ubuntuResponse struct { type ubuntuResponse struct {

View File

@ -9,7 +9,7 @@ import (
"testing" "testing"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
) )
func TestUbuntuParseError(t *testing.T) { func TestUbuntuParseError(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"testing" "testing"
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
) )
func TestFetchResourceIntegration(t *testing.T) { func TestFetchResourceIntegration(t *testing.T) {

View File

@ -11,7 +11,7 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
"github.com/ooni/probe-cli/v3/internal/engine/netx/dialer" "github.com/ooni/probe-cli/v3/internal/engine/netx/dialer"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
engine "github.com/ooni/probe-cli/v3/internal/engine" engine "github.com/ooni/probe-cli/v3/internal/engine"
"github.com/ooni/probe-cli/v3/internal/engine/internal/kvstore" "github.com/ooni/probe-cli/v3/internal/engine/kvstore"
"github.com/ooni/probe-cli/v3/internal/engine/model" "github.com/ooni/probe-cli/v3/internal/engine/model"
) )

View File

@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"net/url" "net/url"
"github.com/ooni/probe-cli/v3/internal/engine/internal/kvstore" "github.com/ooni/probe-cli/v3/internal/engine/kvstore"
"github.com/ooni/probe-cli/v3/internal/engine/internal/psiphonx" "github.com/ooni/probe-cli/v3/internal/engine/internal/psiphonx"
"github.com/ooni/probe-cli/v3/internal/engine/runtimex" "github.com/ooni/probe-cli/v3/internal/engine/runtimex"
"github.com/ooni/probe-cli/v3/internal/engine/internal/torx" "github.com/ooni/probe-cli/v3/internal/engine/internal/torx"

View File

@ -8,7 +8,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
) )
// DNSOverHTTPS is a DNS over HTTPS RoundTripper. Requests are submitted over // DNSOverHTTPS is a DNS over HTTPS RoundTripper. Requests are submitted over

View File

@ -9,7 +9,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpheader" "github.com/ooni/probe-cli/v3/internal/engine/httpheader"
"github.com/ooni/probe-cli/v3/internal/engine/netx/resolver" "github.com/ooni/probe-cli/v3/internal/engine/netx/resolver"
) )

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"net/url" "net/url"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
) )
type checkReportIDResponse struct { type checkReportIDResponse struct {

View File

@ -8,8 +8,8 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/atomicx" "github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/kvstore" "github.com/ooni/probe-cli/v3/internal/engine/kvstore"
"github.com/ooni/probe-cli/v3/internal/engine/probeservices" "github.com/ooni/probe-cli/v3/internal/engine/probeservices"
) )

View File

@ -5,7 +5,7 @@ import (
"net/url" "net/url"
"time" "time"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
) )
// MeasurementMetaConfig contains configuration for GetMeasurementMeta. // MeasurementMetaConfig contains configuration for GetMeasurementMeta.

View File

@ -9,8 +9,8 @@ import (
"github.com/apex/log" "github.com/apex/log"
"github.com/ooni/probe-cli/v3/internal/engine/atomicx" "github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/kvstore" "github.com/ooni/probe-cli/v3/internal/engine/kvstore"
"github.com/ooni/probe-cli/v3/internal/engine/probeservices" "github.com/ooni/probe-cli/v3/internal/engine/probeservices"
) )

View File

@ -29,7 +29,7 @@ import (
"net/url" "net/url"
"github.com/ooni/probe-cli/v3/internal/engine/atomicx" "github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
"github.com/ooni/probe-cli/v3/internal/engine/model" "github.com/ooni/probe-cli/v3/internal/engine/model"
) )

View File

@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/ooni/probe-cli/v3/internal/engine/internal/kvstore" "github.com/ooni/probe-cli/v3/internal/engine/kvstore"
"github.com/ooni/probe-cli/v3/internal/engine/probeservices" "github.com/ooni/probe-cli/v3/internal/engine/probeservices"
) )

View File

@ -13,7 +13,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/ooni/probe-cli/v3/internal/engine/internal/httpx" "github.com/ooni/probe-cli/v3/internal/engine/httpx"
"github.com/ooni/probe-cli/v3/internal/engine/model" "github.com/ooni/probe-cli/v3/internal/engine/model"
) )

View File

@ -13,7 +13,7 @@ import (
"github.com/ooni/probe-cli/v3/internal/engine/atomicx" "github.com/ooni/probe-cli/v3/internal/engine/atomicx"
"github.com/ooni/probe-cli/v3/internal/engine/geolocate" "github.com/ooni/probe-cli/v3/internal/engine/geolocate"
"github.com/ooni/probe-cli/v3/internal/engine/internal/kvstore" "github.com/ooni/probe-cli/v3/internal/engine/kvstore"
"github.com/ooni/probe-cli/v3/internal/engine/internal/platform" "github.com/ooni/probe-cli/v3/internal/engine/internal/platform"
"github.com/ooni/probe-cli/v3/internal/engine/internal/sessionresolver" "github.com/ooni/probe-cli/v3/internal/engine/internal/sessionresolver"
"github.com/ooni/probe-cli/v3/internal/engine/internal/tunnel" "github.com/ooni/probe-cli/v3/internal/engine/internal/tunnel"

1
pkg/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/testdata