Documentation
¶
Overview ¶
Reverse proxy to expose streaming service.
Expose service via TCP, UDP or UNIX connection as WebSocket so clients can use standard protocol to communicate with internal backend.
The project was heavily inspired from socat and websocketd.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Endpoints []Endpoint // endpoint configuration (to where connection will be established) Timeout time.Duration // connection timeout }
Configuration for HTTP WS reverse proxy to multiple backend
type DynamicConfig ¶ added in v0.0.3
Dynamic configuration for HTTP WS reverse proxy to multiple backend.
Mapping to /<address:port>/<protocol:tls|tcp|udp>
func (DynamicConfig) Create ¶ added in v0.0.3
func (c DynamicConfig) Create() http.Handler
Create HTTP handler with dynamic mapping to remote addresses
type Endpoint ¶
type Endpoint struct { Path string // front HTTP binding path (ex: /ws) Address string // remote address with host and port (if applicable) Protocol string // protocol type: tcp, udp, unix }
Endpoint definition that contains remote address (with port) and protocol (supported by Go Dial function)
Click to show internal directories.
Click to hide internal directories.