Documentation ¶
Index ¶
- type Proxy
- func (p *Proxy) AddHost(sni string, addr string) error
- func (p *Proxy) ListenAndServeTLS(addr string) error
- func (p *Proxy) RemoveHost(sni string) error
- func (p *Proxy) WithCertificateManager(cm certmgr.CertificateManager) *Proxy
- func (p *Proxy) WithHostManager(hm hostmgr.HostManager) *Proxy
- func (p *Proxy) WithRequestMiddleware(rm reqmw.RequestMiddleware) *Proxy
- func (p *Proxy) WithResponseMiddleware(rm respmw.ResponseMiddleware) *Proxy
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 is an multiple-host SNI-based reverse proxy
func (*Proxy) ListenAndServeTLS ¶
ListenAndServeTLS starts the proxy server
func (*Proxy) RemoveHost ¶
RemoveHost removes a target host from the proxy
func (*Proxy) WithCertificateManager ¶
func (p *Proxy) WithCertificateManager(cm certmgr.CertificateManager) *Proxy
WithCertificateManager sets the proxy's certificate manager
func (*Proxy) WithHostManager ¶
func (p *Proxy) WithHostManager(hm hostmgr.HostManager) *Proxy
WithHostManager sets the proxy's host manager
func (*Proxy) WithRequestMiddleware ¶
func (p *Proxy) WithRequestMiddleware(rm reqmw.RequestMiddleware) *Proxy
WithRequestMiddleware sets the proxy's request-processing middleware
func (*Proxy) WithResponseMiddleware ¶
func (p *Proxy) WithResponseMiddleware(rm respmw.ResponseMiddleware) *Proxy
WithResponseMiddleware sets the proxy's response-processing middleware
Click to show internal directories.
Click to hide internal directories.