Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMoreData = newError("need more data") ErrInvalidData = newError("invalid data") )
Functions ¶
func ReadClientHello ¶
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
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
Click to show internal directories.
Click to hide internal directories.