baez90
57a7e10e74
* Add Prometheus metrics - cleanup - update dependencies - improve parsing of options where possible - Update Go to latest version
18 lines
268 B
Go
18 lines
268 B
Go
package http_proxy
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type redirectionTarget struct {
|
|
IPAddress string
|
|
Port uint16
|
|
}
|
|
|
|
func (rt redirectionTarget) host() string {
|
|
return fmt.Sprintf("%s:%d", rt.IPAddress, rt.Port)
|
|
}
|
|
|
|
type httpProxyOptions struct {
|
|
Target redirectionTarget
|
|
}
|