Documentation ¶
Index ¶
- type BufferPool
- type Config
- func (p *Config) GetCertificateFunc() func(*tls.ClientHelloInfo) (*tls.Certificate, error)
- func (p *Config) RunNetworkServer(ctx context.Context, l net.Listener, encrypted bool) error
- func (p *Config) ShutDown() error
- func (p *Config) UpdateSecrets(cert *tls.Certificate, caPool *x509.CertPool, s secrets.Secrets, ...)
- type JWTClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
BufferPool implements the interface of httputil.BufferPool in order to improve memory utilization in the reverse proxy.
type Config ¶
Config maintains state for proxies connections from listen to backend.
func NewHTTPProxy ¶
func NewHTTPProxy( c collector.EventCollector, puContext string, caPool *x509.CertPool, applicationProxy bool, mark int, secrets secrets.Secrets, registry *serviceregistry.Registry, ) *Config
NewHTTPProxy creates a new instance of proxy reate a new instance of Proxy
func (*Config) GetCertificateFunc ¶
func (p *Config) GetCertificateFunc() func(*tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificateFunc implements the TLS interface for getting the certificate. This allows us to update the certificates of the connection on the fly.
func (*Config) RunNetworkServer ¶
RunNetworkServer runs an HTTP network server. If TLS is needed, the listener should be already a TLS listener.
func (*Config) UpdateSecrets ¶
func (p *Config) UpdateSecrets(cert *tls.Certificate, caPool *x509.CertPool, s secrets.Secrets, certPEM, keyPEM string)
UpdateSecrets updates the secrets
Click to show internal directories.
Click to hide internal directories.