Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + const VersionDraft29 + const VersionDraft32 + var RetireBugBackwardsCompatibilityMode bool + type ClientToken struct + type Config struct + AcceptToken func(clientAddr net.Addr, token *Token) bool + ConnectionIDLength int + HandshakeTimeout time.Duration + KeepAlive bool + MaxIdleTimeout time.Duration + MaxIncomingStreams int64 + MaxIncomingUniStreams int64 + MaxReceiveConnectionFlowControlWindow uint64 + MaxReceiveStreamFlowControlWindow uint64 + QuicTracer quictrace.Tracer + StatelessResetKey []byte + TokenStore TokenStore + Tracer logging.Tracer + Versions []VersionNumber + func (c *Config) Clone() *Config + type ConnectionState = handshake.ConnectionState + type ECNCapablePacketConn interface + ReadMsgUDP func(b, oob []byte) (n, oobn, flags int, addr *net.UDPAddr, err error) + SyscallConn func() (syscall.RawConn, error) + type EarlyListener interface + Accept func(context.Context) (EarlySession, error) + Addr func() net.Addr + Close func() error + func ListenAddrEarly(addr string, tlsConf *tls.Config, config *Config) (EarlyListener, error) + func ListenEarly(conn net.PacketConn, tlsConf *tls.Config, config *Config) (EarlyListener, error) + type EarlySession interface + HandshakeComplete func() context.Context + func DialAddrEarly(addr string, tlsConf *tls.Config, config *Config) (EarlySession, error) + func DialAddrEarlyContext(ctx context.Context, addr string, tlsConf *tls.Config, config *Config) (EarlySession, error) + func DialEarly(pconn net.PacketConn, remoteAddr net.Addr, host string, tlsConf *tls.Config, ...) (EarlySession, error) + func DialEarlyContext(ctx context.Context, pconn net.PacketConn, remoteAddr net.Addr, host string, ...) (EarlySession, error) + type ErrorCode = protocol.ApplicationErrorCode + type Listener interface + Accept func(context.Context) (Session, error) + Addr func() net.Addr + Close func() error + func Listen(conn net.PacketConn, tlsConf *tls.Config, config *Config) (Listener, error) + func ListenAddr(addr string, tlsConf *tls.Config, config *Config) (Listener, error) + type ReceiveStream interface + CancelRead func(ErrorCode) + SetReadDeadline func(t time.Time) error + StreamID func() StreamID + type SendStream interface + CancelWrite func(ErrorCode) + Context func() context.Context + SetWriteDeadline func(t time.Time) error + StreamID func() StreamID + type Session interface + AcceptStream func(context.Context) (Stream, error) + AcceptUniStream func(context.Context) (ReceiveStream, error) + CloseWithError func(ErrorCode, string) error + ConnectionState func() ConnectionState + Context func() context.Context + LocalAddr func() net.Addr + OpenStream func() (Stream, error) + OpenStreamSync func(context.Context) (Stream, error) + OpenUniStream func() (SendStream, error) + OpenUniStreamSync func(context.Context) (SendStream, error) + RemoteAddr func() net.Addr + func Dial(pconn net.PacketConn, remoteAddr net.Addr, host string, tlsConf *tls.Config, ...) (Session, error) + func DialAddr(addr string, tlsConf *tls.Config, config *Config) (Session, error) + func DialAddrContext(ctx context.Context, addr string, tlsConf *tls.Config, config *Config) (Session, error) + func DialContext(ctx context.Context, pconn net.PacketConn, remoteAddr net.Addr, host string, ...) (Session, error) + type Stream interface + SetDeadline func(t time.Time) error + type StreamError interface + Canceled func() bool + ErrorCode func() ErrorCode + type StreamID = protocol.StreamID + type Token struct + IsRetryToken bool + RemoteAddr string + SentTime time.Time + type TokenStore interface + Pop func(key string) (token *ClientToken) + Put func(key string, token *ClientToken) + func NewLRUTokenStore(maxOrigins, tokensPerOrigin int) TokenStore + type VersionNumber = protocol.VersionNumber