Versions in this module Expand all Collapse all v0 v0.28.1 Aug 29, 2024 Changes in this version + const QLogLevelConn + const QLogLevelEndpoint + const QLogLevelFrame + const QLogLevelPacket + type ApplicationError struct + Code uint64 + Reason string + func (e *ApplicationError) Error() string + func (e *ApplicationError) Is(err error) bool + type Config struct + HandshakeTimeout time.Duration + KeepAlivePeriod time.Duration + MaxBidiRemoteStreams int64 + MaxConnReadBufferSize int64 + MaxIdleTimeout time.Duration + MaxStreamReadBufferSize int64 + MaxStreamWriteBufferSize int64 + MaxUniRemoteStreams int64 + QLogLogger *slog.Logger + RequireAddressValidation bool + StatelessResetKey [32]byte + TLSConfig *tls.Config + func (c *Config) Clone() *Config + type Conn struct + func (c *Conn) Abort(err error) + func (c *Conn) AcceptStream(ctx context.Context) (*Stream, error) + func (c *Conn) Close() error + func (c *Conn) NewSendOnlyStream(ctx context.Context) (*Stream, error) + func (c *Conn) NewStream(ctx context.Context) (*Stream, error) + func (c *Conn) String() string + func (c *Conn) Wait(ctx context.Context) error + type Endpoint struct + func Listen(network, address string, listenConfig *Config) (*Endpoint, error) + func (e *Endpoint) Accept(ctx context.Context) (*Conn, error) + func (e *Endpoint) Close(ctx context.Context) error + func (e *Endpoint) Dial(ctx context.Context, network, address string, config *Config) (*Conn, error) + func (e *Endpoint) LocalAddr() netip.AddrPort + type Stream struct + func (s *Stream) Close() error + func (s *Stream) CloseRead() + func (s *Stream) CloseWrite() + func (s *Stream) Flush() + func (s *Stream) IsReadOnly() bool + func (s *Stream) IsWriteOnly() bool + func (s *Stream) Read(b []byte) (n int, err error) + func (s *Stream) ReadByte() (byte, error) + func (s *Stream) Reset(code uint64) + func (s *Stream) SetReadContext(ctx context.Context) + func (s *Stream) SetWriteContext(ctx context.Context) + func (s *Stream) Write(b []byte) (n int, err error) + func (s *Stream) WriteByte(c byte) error + type StreamErrorCode uint64 + func (e StreamErrorCode) Error() string