Documentation ¶
Index ¶
- func NewListener(inner net.Listener, config ServerConfig) net.Listener
- type Config
- type ConfigCompat
- type Conn
- type ConnectionState
- type LazyConn
- func (c *LazyConn) HandshakeContext(ctx context.Context) error
- func (c *LazyConn) NeedHandshake() bool
- func (c *LazyConn) Read(p []byte) (n int, err error)
- func (c *LazyConn) ReaderReplaceable() bool
- func (c *LazyConn) Upstream() any
- func (c *LazyConn) Write(p []byte) (n int, err error)
- func (c *LazyConn) WriterReplaceable() bool
- type Listener
- type STDConfig
- type STDConn
- type ServerConfig
- type ServerConfigCompat
- type WithSessionIDGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListener ¶
func NewListener(inner net.Listener, config ServerConfig) net.Listener
Types ¶
type ConfigCompat ¶
type Conn ¶
type Conn interface { net.Conn NetConn() net.Conn HandshakeContext(ctx context.Context) error ConnectionState() ConnectionState }
func ClientHandshake ¶
func ServerHandshake ¶
type ConnectionState ¶
type ConnectionState = tls.ConnectionState
type LazyConn ¶
func NewLazyConn ¶
func NewLazyConn(conn net.Conn, config ServerConfig) *LazyConn
func (*LazyConn) NeedHandshake ¶
func (*LazyConn) ReaderReplaceable ¶
func (*LazyConn) WriterReplaceable ¶
type ServerConfig ¶
type ServerConfigCompat ¶
type WithSessionIDGenerator ¶
Click to show internal directories.
Click to hide internal directories.