api/internal/endpoint/handler/http/proxy/protocol_options.go

19 lines
263 B
Go
Raw Normal View History

2021-01-13 17:07:04 +00:00
package 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
}