api/internal/endpoint/handler/tls/interceptor/protocol_options.go

18 lines
266 B
Go

package interceptor
import (
"fmt"
)
type redirectionTarget struct {
IPAddress string
Port uint16
}
func (rt redirectionTarget) address() string {
return fmt.Sprintf("%s:%d", rt.IPAddress, rt.Port)
}
type tlsOptions struct {
Target redirectionTarget
}