Documentation ¶
Index ¶
- func ParseTLSVersion(s string) (uint16, error)
- type Config
- type ContextConnextion
- type ListenersHandler
- func (p *ListenersHandler) Accept() (net.Conn, error)
- func (p *ListenersHandler) Addr() net.Addr
- func (p *ListenersHandler) Close() error
- func (p *ListenersHandler) GetConnectionContext(remoteAddr, localAddr string) (context.Context, error)
- func (p *ListenersHandler) Start(ctx context.Context, r prometheus.Registerer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTLSVersion ¶ added in v0.27.2
Types ¶
type ContextConnextion ¶
type ContextConnextion struct { net.Conn context.Context CloseFunc func() error // contains filtered or unexported fields }
func (ContextConnextion) Close ¶
func (c ContextConnextion) Close() error
func (ContextConnextion) GetContext ¶
func (c ContextConnextion) GetContext() context.Context
type ListenersHandler ¶
type ListenersHandler struct { GetCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error) MinTLSVersion uint16 ListenersForHandleTLS []net.Listener // listener which will handle TLS // listeners which will not handle TLS, but will proxy to self listener. It is comfortable for listen https and http // ports and translate it to one proxy Listeners []net.Listener NextProtos []string // contains filtered or unexported fields }
func (*ListenersHandler) Accept ¶
func (p *ListenersHandler) Accept() (net.Conn, error)
Implement net.Listener
func (*ListenersHandler) Addr ¶
func (p *ListenersHandler) Addr() net.Addr
func (*ListenersHandler) Close ¶
func (p *ListenersHandler) Close() error
func (*ListenersHandler) GetConnectionContext ¶
func (p *ListenersHandler) GetConnectionContext(remoteAddr, localAddr string) (context.Context, error)
func (*ListenersHandler) Start ¶
func (p *ListenersHandler) Start(ctx context.Context, r prometheus.Registerer) error
Click to show internal directories.
Click to hide internal directories.