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

Peer

import type { Peer } from "https://googleapis.deno.dev/v1/servicecontrol:v2.ts";

This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in principal and labels as appropriate.

interface Peer {
ip?: string;
labels?: {
[key: string]: string;
}
;
port?: bigint;
principal?: string;
regionCode?: string;
}

§Properties

§
ip?: string
[src]

The IP address of the peer.

§
labels?: {
[key: string]: string;
}
[src]

The labels associated with the peer.

§
port?: bigint
[src]

The network port of the peer.

§
principal?: string
[src]

The identity of this peer. Similar to Request.auth.principal, but relative to the peer instead of the request. For example, the identity associated with a load balancer that forwarded the request.

§
regionCode?: string
[src]

The CLDR country/region code associated with the above IP address. If the IP address is private, the region_code should reflect the physical location where this peer is running.