refactor: move TH structs and definitions to model (#894)
This commit moves the TH structs and definitions to model. We don't want oohelperd to depend on web_connectivity@v0.4. Part of https://github.com/ooni/probe/issues/2240
This commit is contained in:
parent
110a11828b
commit
bb6563f363
12 changed files with 161 additions and 157 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"net"
|
||||
"net/url"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/model"
|
||||
"github.com/ooni/probe-cli/v3/internal/netxlite"
|
||||
)
|
||||
|
||||
|
|
@ -14,7 +15,7 @@ type DNSAnalysisResult struct {
|
|||
}
|
||||
|
||||
// DNSNameError is the error returned by the control on NXDOMAIN
|
||||
const DNSNameError = "dns_name_error"
|
||||
const DNSNameError = model.THDNSNameError
|
||||
|
||||
var (
|
||||
// DNSConsistent indicates that the measurement and the
|
||||
|
|
|
|||
Loading…
Reference in a new issue