lib

package
v0.0.0-...-0a4c363 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

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

type SnowflakeClientConn struct {
	net.Conn
	// contains filtered or unexported fields
}

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

func (*SnowflakeListener) QueueConn

func (l *SnowflakeListener) QueueConn(conn net.Conn) 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

func (*Transport) Listen

func (t *Transport) Listen(addr net.Addr) (*SnowflakeListener, error)

Jump to

Keyboard shortcuts

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