Upgrade to ooni/probe-engine@v0.1.1 (#60)

This commit is contained in:
Simone Basso
2019-10-03 09:43:25 +02:00
committed by GitHub
parent 23c8df1f0c
commit f3865d2ec0
8 changed files with 103 additions and 35 deletions
+12 -1
View File
@@ -10,7 +10,7 @@ import (
// Logger is the logger used by the engine.
var Logger = log.WithFields(log.Fields{
"type": "engine",
"type": "engine",
})
// MakeGenericTestKeys casts the m.TestKeys to a map[string]interface{}.
@@ -36,3 +36,14 @@ func MakeGenericTestKeys(m model.Measurement) (map[string]interface{}, error) {
err = json.Unmarshal(data, &result)
return result, err
}
// LocationProvider is an interface that returns the current location. The
// github.com/ooni/probe-engine/session.Session implements it.
type LocationProvider interface {
ProbeASN() uint
ProbeASNString() string
ProbeCC() string
ProbeIP() string
ProbeNetworkName() string
ResolverIP() string
}