verify / verify (push) Successful in 2m55s
Export the reviewed application-neutral package set through the exact public allowlist. Development history and private application evidence remain outside this canonical source root. Developed with material AI assistance under maintainer review. Signed-off-by: Cole Speelman <crspeelman@gmail.com>
17 lines
487 B
Go
17 lines
487 B
Go
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package analytics
|
|
|
|
import "context"
|
|
|
|
// GeoEnricher is deliberately optional. Implementations may use a private local
|
|
// database; the base analytics package performs no network lookup.
|
|
type GeoEnricher interface {
|
|
Lookup(context.Context, string) (GeoEvidence, error)
|
|
}
|
|
type GeoEvidence struct {
|
|
CountryCode, Region, City, ASNOrganization string
|
|
ASN uint
|
|
Source, Confidence string
|
|
}
|