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>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user