Resolve the visitor's IP to a country code via the geoloc service and map it to the applicable privacy regulation (GDPR, UK GDPR, FADP, CCPA, PIPEDA, LGPD, LFPDPPP, POPIA, PDPA, PIPL, PIPA, APPI, DPDP, PDPL). The regulation and its implied consent mode (OPT_IN / OPT_OUT) are injected into the GET /config response so the SDK can adapt its behavior. Also makes geoloc.Service self-contained: LookupCountry and IsPopulated now manage their own DB connections instead of requiring callers to pass a pg.Querier. Signed-off-by: Émile Ré <emile@getprobo.com>
8.6 KiB
8.6 KiB