Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMapAddr ¶
type ClientMapAddr string
func (ClientMapAddr) Network ¶
func (addr ClientMapAddr) Network() string
func (ClientMapAddr) String ¶
func (addr ClientMapAddr) String() string
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
func (*HTTPHandler) ServeHTTP ¶
func (handler *HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SnowflakeClientConn ¶
A wrapper for the underlying oneshot or turbotunnel conn because we need to reference our mapping to determine the client address
func (*SnowflakeClientConn) RemoteAddr ¶
func (conn *SnowflakeClientConn) RemoteAddr() net.Addr
type SnowflakeListener ¶
type SnowflakeListener struct {
// contains filtered or unexported fields
}
func (*SnowflakeListener) Accept ¶
func (l *SnowflakeListener) Accept() (net.Conn, error)
Allows the caller to accept incoming Snowflake connections We accept connections from a queue to accommodate both incoming smux Streams and legacy non-turbotunnel connections
func (*SnowflakeListener) Addr ¶
func (l *SnowflakeListener) Addr() net.Addr
func (*SnowflakeListener) Close ¶
func (l *SnowflakeListener) Close() error
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a structure with methods that conform to the Go PT v2.1 API https://github.com/Pluggable-Transports/Pluggable-Transports-spec/blob/master/releases/PTSpecV2.1/Pluggable%20Transport%20Specification%20v2.1%20-%20Go%20Transport%20API.pdf
func NewSnowflakeServer ¶
func NewSnowflakeServer(getCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error)) *Transport
Click to show internal directories.
Click to hide internal directories.