Documentation ¶
Overview ¶
Package server provides an implementation of a TLSProxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy implements a TLSproxy.
func (*Proxy) TLSHandler ¶
TLSHandler returns the handler function of a TLSproxy.
type ProxyConfig ¶
type ProxyConfig struct { Protocol string `default:"http" hcl:"protocol,label"` ListenAddr []string `default:"[\":8080\"]" hcl:"listen"` }
ProxyConfig is a configuration for a TLSproxy.
func (*ProxyConfig) New ¶
func (pc *ProxyConfig) New() *Proxy
New returns a pointer to a TLSproxy created from a TLSproxy configuration.
Click to show internal directories.
Click to hide internal directories.