Versions in this module Expand all Collapse all v0 v0.25.0 Aug 22, 2022 Changes in this version + const AEADLimitReached + const ApplicationErrorErrorCode + const ConnectionIDLimitError + const ConnectionRefused + const CryptoBufferExceeded + const FinalSizeError + const FlowControlError + const FrameEncodingError + const IPV6_DONTFRAG — windows/amd64 + const IP_DONTFRAGMENT — windows/amd64 + const InternalError + const InvalidToken + const KeyUpdateError + const NoError + const NoViablePathError + const ProtocolViolation + const StreamLimitError + const StreamStateError + const TransportParameterError + const Version1 + const Version2 + const VersionDraft29 + var ConnectionTracingKey = connTracingCtxKey + var Err0RTTRejected = errors.New("0-RTT rejected") + var ErrServerClosed = errors.New("quic: Server closed") + type ApplicationError = qerr.ApplicationError + type ApplicationErrorCode = qerr.ApplicationErrorCode + type ClientToken struct + type Config struct + AllowConnectionWindowIncrease func(sess Connection, delta uint64) bool + ConnectionIDLength int + DisablePathMTUDiscovery bool + DisableVersionNegotiationPackets bool + EnableDatagrams bool + HandshakeIdleTimeout time.Duration + InitialConnectionReceiveWindow uint64 + InitialStreamReceiveWindow uint64 + KeepAlivePeriod time.Duration + MaxConnectionReceiveWindow uint64 + MaxIdleTimeout time.Duration + MaxIncomingStreams int64 + MaxIncomingUniStreams int64 + MaxRetryTokenAge time.Duration + MaxStreamReceiveWindow uint64 + MaxTokenAge time.Duration + RequireAddressValidation func(net.Addr) bool + StatelessResetKey []byte + TokenStore TokenStore + Tracer logging.Tracer + Versions []VersionNumber + func (c *Config) Clone() *Config + type Connection interface + AcceptStream func(context.Context) (Stream, error) + AcceptUniStream func(context.Context) (ReceiveStream, error) + CloseWithError func(ApplicationErrorCode, 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) + ReceiveMessage func() ([]byte, error) + RemoteAddr func() net.Addr + SendMessage func([]byte) error + func Dial(pconn net.PacketConn, remoteAddr net.Addr, host string, tlsConf *tls.Config, ...) (Connection, error) + func DialAddr(addr string, tlsConf *tls.Config, config *Config) (Connection, error) + func DialAddrContext(ctx context.Context, addr string, tlsConf *tls.Config, config *Config) (Connection, error) + func DialContext(ctx context.Context, pconn net.PacketConn, remoteAddr net.Addr, host string, ...) (Connection, error) + type ConnectionState struct + SupportsDatagrams bool + TLS handshake.ConnectionState + type EarlyConnection interface + HandshakeComplete func() context.Context + NextConnection func() Connection + func DialAddrEarly(addr string, tlsConf *tls.Config, config *Config) (EarlyConnection, error) + func DialAddrEarlyContext(ctx context.Context, addr string, tlsConf *tls.Config, config *Config) (EarlyConnection, error) + func DialEarly(pconn net.PacketConn, remoteAddr net.Addr, host string, tlsConf *tls.Config, ...) (EarlyConnection, error) + func DialEarlyContext(ctx context.Context, pconn net.PacketConn, remoteAddr net.Addr, host string, ...) (EarlyConnection, error) + type EarlyListener interface + Accept func(context.Context) (EarlyConnection, 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 HandshakeTimeoutError = qerr.HandshakeTimeoutError + type IdleTimeoutError = qerr.IdleTimeoutError + type Listener interface + Accept func(context.Context) (Connection, 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 OOBCapablePacketConn interface + ReadMsgUDP func(b, oob []byte) (n, oobn, flags int, addr *net.UDPAddr, err error) + SyscallConn func() (syscall.RawConn, error) + WriteMsgUDP func(b, oob []byte, addr *net.UDPAddr) (n, oobn int, err error) + type ReceiveStream interface + CancelRead func(StreamErrorCode) + SetReadDeadline func(t time.Time) error + StreamID func() StreamID + type SendStream interface + CancelWrite func(StreamErrorCode) + Context func() context.Context + SetWriteDeadline func(t time.Time) error + StreamID func() StreamID + type StatelessResetError = qerr.StatelessResetError + type Stream interface + SetDeadline func(t time.Time) error + type StreamError struct + ErrorCode StreamErrorCode + StreamID StreamID + func (e *StreamError) Error() string + func (e *StreamError) Is(target error) bool + type StreamErrorCode = qerr.StreamErrorCode + type StreamID = protocol.StreamID + type TokenStore interface + Pop func(key string) (token *ClientToken) + Put func(key string, token *ClientToken) + func NewLRUTokenStore(maxOrigins, tokensPerOrigin int) TokenStore + type TransportError = qerr.TransportError + type TransportErrorCode = qerr.TransportErrorCode + type VersionNegotiationError = qerr.VersionNegotiationError + type VersionNumber = protocol.VersionNumber