Documentation ¶
Index ¶
Constants ¶
View Source
const DEVNULL = "devnull.invalid"
DEVNULL is a DNS name that is guarenteed to fail a DNS lookup due to using a reserved TLD https://tools.ietf.org/html/rfc2606
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func ListenAndServe(addr string, supervisorHost string, headersToRemove, queriesToRemove []string, hostCalculator HostCalculator, log *logrus.Logger) error
ListenAndServe listens on the provided address and Reverse-Proxies incoming requests to the endpoints as calculated by hostCalculator, while removing the headers and queries specified.
Types ¶
Click to show internal directories.
Click to hide internal directories.