Documentation ¶
Index ¶
- func Listen(ql quic.Listener) net.Listener
- func NewConn(conn quic.Connection) (net.Conn, error)
- func NewCredentials(tlsConfig *tls.Config) credentials.TransportCredentials
- func NewQuicDialer(tlsConf *tls.Config) func(context.Context, string) (net.Conn, error)
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (n int, err 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) (n int, err error)
- type Credentials
- func (c *Credentials) ClientHandshake(ctx context.Context, s string, conn net.Conn) (net.Conn, credentials.AuthInfo, error)
- func (c *Credentials) Clone() credentials.TransportCredentials
- func (c *Credentials) Info() credentials.ProtocolInfo
- func (c *Credentials) OverrideServerName(s string) error
- func (c *Credentials) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)
- type Info
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredentials ¶
func NewCredentials(tlsConfig *tls.Config) credentials.TransportCredentials
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type Credentials ¶
type Credentials struct {
// contains filtered or unexported fields
}
func (*Credentials) ClientHandshake ¶
func (*Credentials) Clone ¶
func (c *Credentials) Clone() credentials.TransportCredentials
func (*Credentials) Info ¶
func (c *Credentials) Info() credentials.ProtocolInfo
func (*Credentials) OverrideServerName ¶
func (c *Credentials) OverrideServerName(s string) error
OverrideServerName deprecated, make golang happy :(
func (*Credentials) ServerHandshake ¶
func (c *Credentials) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)
Click to show internal directories.
Click to hide internal directories.