api/plugins/tls_interceptor/protocol_options.go
baez90 57a7e10e74
Add Prometheus metrics (#10)
* Add Prometheus metrics

- cleanup
- update dependencies
- improve parsing of options where possible
- Update Go to latest version
2020-10-02 11:56:48 +02:00

18 lines
270 B
Go

package tls_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
}