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 Config ¶
type Config struct {
Settings *SessionConfig `protobuf:"bytes,1,opt,name=settings" json:"settings,omitempty"`
}
func (*Config) GetSettings ¶
func (m *Config) GetSettings() *SessionConfig
type DefaultDispatcher ¶
type DefaultDispatcher struct {
// contains filtered or unexported fields
}
DefaultDispatcher is a default implementation of Dispatcher.
func NewDefaultDispatcher ¶
func NewDefaultDispatcher(ctx context.Context, config *Config) (*DefaultDispatcher, error)
NewDefaultDispatcher create a new DefaultDispatcher.
func (*DefaultDispatcher) Close ¶
func (*DefaultDispatcher) Close() error
Close implements common.Closable.
func (*DefaultDispatcher) Dispatch ¶
func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destination) (*core.Link, error)
Dispatch implements core.Dispatcher.
func (*DefaultDispatcher) Start ¶
func (*DefaultDispatcher) Start() error
Start implements common.Runnable.
type SessionConfig ¶
type SessionConfig struct { }
func (*SessionConfig) Descriptor ¶
func (*SessionConfig) Descriptor() ([]byte, []int)
func (*SessionConfig) ProtoMessage ¶
func (*SessionConfig) ProtoMessage()
func (*SessionConfig) Reset ¶
func (m *SessionConfig) Reset()
func (*SessionConfig) String ¶
func (m *SessionConfig) String() string
Click to show internal directories.
Click to hide internal directories.