Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get gets the client IP for an http.Request
NOTE: currently only two scenarios are supported: 1. no loadbalancer, local testing 2. behind Google Cloud LoadBalancer (as in cloudrun)
Note that in particular we do not support hitting the CloudRun endpoint directly (though we could easily do so here). Cloud Armor is on the GCLB, so directly accessing the CloudRun endpoint would bypass that.
At this time we have no need to complicate it further.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.