fallback

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSHStartString = "SSH-2"
	WSStartString  = "GET /" // websocket handshake actually is an HTTP GET

	PeekLength = 5
)

Variables

View Source
var NewClientImpl func(clientConfig config.ClientConfig) common.ClientImpl

Functions

func IsTimeout added in v0.1.32

func IsTimeout(err error) bool

Types

type Config

type Config struct {
	config.FallbackConfig
	config.ProxyConfig
	IsWebSocketListener bool
}

type Fallback

type Fallback struct {
	// contains filtered or unexported fields
}

func NewFallback

func NewFallback(fallbackConfig Config) (*Fallback, error)

func (*Fallback) Handle

func (f *Fallback) Handle(conn peek.Conn, edBuf []byte, inHeader http.Header) bool

type TimeoutError added in v0.1.32

type TimeoutError interface {
	Timeout() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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