Documentation
¶
Index ¶
Constants ¶
View Source
const TCPScheme = "tcp"
tcp means disable tls, tcp://
View Source
const (
// TargetURLHeaderKey is header key to specify target URL
TargetURLHeaderKey = "X-Bridge-Target-URL"
)
Variables ¶
View Source
var ( ErrBadGateway = errors.New(http.StatusText(http.StatusBadGateway)) ErrBadRequest = errors.New(http.StatusText(http.StatusBadRequest)) )
Functions ¶
This section is empty.
Types ¶
type DialContextFunc ¶
DialContextFunc is a type alias of the net.DialContext
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy represents a bridge which proxies the connection between basemachina API and any data sources in tenants.
type TCPProxy ¶
type TCPProxy struct {
// contains filtered or unexported fields
}
TCPProxy represents tcp proxy.
func NewTCPProxy ¶
NewTCPProxy creates a new tcp proxy.
func (*TCPProxy) ServeWebSocket ¶
ServeWebSocket serves tcp proxy over websocket.
Click to show internal directories.
Click to hide internal directories.