handler

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxiedConnection added in v0.1.0

type ProxiedConnection struct {
	Unrecoverable bool
	// contains filtered or unexported fields
}

func (*ProxiedConnection) IsRecoverable added in v0.1.0

func (pc *ProxiedConnection) IsRecoverable(err error) bool

func (*ProxiedConnection) UpstreamRead added in v0.1.0

func (pc *ProxiedConnection) UpstreamRead(r *http.Request) ([]byte, error)

func (*ProxiedConnection) UpstreamWrite added in v0.1.0

func (pc *ProxiedConnection) UpstreamWrite(r *http.Request) error

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(l *logrus.Logger) *Proxy

func (*Proxy) GetMonitoringEventTypes

func (p *Proxy) GetMonitoringEventTypes() []string

func (*Proxy) ServeHTTP added in v0.1.0

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Proxy) SetObserver

func (p *Proxy) SetObserver(mon monitoring.Observer)

type RequestPayload added in v0.1.0

type RequestPayload struct {
	Request []byte
	Ready   chan []byte
}

type WSProxyHandler added in v0.1.0

type WSProxyHandler struct {
	// contains filtered or unexported fields
}

func (*WSProxyHandler) GetOrCreateUpstreamConnection added in v0.1.0

func (h *WSProxyHandler) GetOrCreateUpstreamConnection(w http.ResponseWriter, r *http.Request) (*ProxiedConnection, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL