impl

package
v2.24.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMoreData    = newError("need more data")
	ErrInvalidData = newError("invalid data")
)

Functions

func ContainsValidHTTPMethod

func ContainsValidHTTPMethod(b []byte) bool

func IsValidTLSVersion

func IsValidTLSVersion(major, minor byte) bool

func ReadClientHello

func ReadClientHello(data []byte) (string, error)

ReadClientHello returns server name (if any) from TLS client hello message. https://github.com/golang/go/blob/master/src/crypto/tls/handshake_messages.go#L300

func SniffHTTP

func SniffHTTP(b []byte) (string, error)

func SniffTLS

func SniffTLS(b []byte) (string, error)

Types

type DefaultDispatcher

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

func NewDefaultDispatcher

func NewDefaultDispatcher(ctx context.Context, config *dispatcher.Config) (*DefaultDispatcher, error)

func (DefaultDispatcher) Close

func (DefaultDispatcher) Close()

func (*DefaultDispatcher) Dispatch

func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destination) (ray.InboundRay, error)

func (DefaultDispatcher) Interface

func (DefaultDispatcher) Interface() interface{}

func (DefaultDispatcher) Start

func (DefaultDispatcher) Start() error

Jump to

Keyboard shortcuts

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