Documentation ¶
Index ¶
- func NewTCPTransport(port int, handler func(Metadata) error) (net.Listener, error)
- func NewTLSTransport(port int, TLSConfig *tls.Config, handler func(Metadata) error) (net.Listener, error)
- func NewWSSTransport(port int, TLSConfig *tls.Config, handler func(Metadata) error) (net.Listener, error)
- func NewWSTransport(port int, handler func(Metadata) error) (net.Listener, error)
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(b []byte) (int, error)
- type Metadata
- type TimeoutReadWriteCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTCPTransport ¶
func NewTLSTransport ¶
func NewWSSTransport ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type Metadata ¶
type Metadata struct { Name string Encrypted bool EncryptionState *tls.ConnectionState RemoteAddress string Channel TimeoutReadWriteCloser Endpoint string }
type TimeoutReadWriteCloser ¶
type TimeoutReadWriteCloser interface { SetDeadline(time.Time) error io.ReadWriteCloser }
Click to show internal directories.
Click to hide internal directories.