Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointIDFromRequest ¶ added in v0.3.0
EndpointIDFromRequest returns the endpoint ID from the HTTP request, or an empty string if no endpoint ID is specified.
This will check both the 'x-piko-endpoint' header and 'Host' header, where x-piko-endpoint takes precedence.
Types ¶
type HTTPProxy ¶ added in v0.5.0
type HTTPProxy struct {
// contains filtered or unexported fields
}
HTTPProxy proxies HTTP traffic to upsteam listeners.
func NewHTTPProxy ¶ added in v0.5.0
func (*HTTPProxy) ServeHTTPWithUpstream ¶ added in v0.5.0
type Server ¶ added in v0.3.0
type Server struct {
// contains filtered or unexported fields
}
type TCPProxy ¶ added in v0.5.0
type TCPProxy struct {
// contains filtered or unexported fields
}
TCPProxy proxies TCP traffic to upstream listeners.
Incoming TCP traffic is sent over WebSockets by a Piko client, then forwarded to an upstream via a multiplexed stream.
func NewTCPProxy ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.