Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GeoPolicy

import type { GeoPolicy } from "https://googleapis.deno.dev/v1/domains:v1.ts";

Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user.

interface GeoPolicy {
enableFencing?: boolean;
item?: GeoPolicyItem[];
}

§Properties

§
enableFencing?: boolean
[src]

Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.

§

The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.