Documentation
¶
Overview ¶
Package api contains auto-generated interfaces and wrappers for the quic data structures.
Index ¶
- type Conn
- type ConnWrapper
- func (w *ConnWrapper) AcceptStream(a1 context.Context) (r1 Stream, r2 error)
- func (w *ConnWrapper) AcceptUniStream(a1 context.Context) (r1 ReceiveStream, r2 error)
- func (w *ConnWrapper) AddPath(a1 Transport) (r1 Path, r2 error)
- func (w *ConnWrapper) CloseWithError(a1 qerr.ApplicationErrorCode, a2 string) error
- func (w *ConnWrapper) ConnectionState() quic.ConnectionState
- func (w *ConnWrapper) Context() context.Context
- func (w *ConnWrapper) HandshakeComplete() <-chan struct{}
- func (w *ConnWrapper) LocalAddr() net.Addr
- func (w *ConnWrapper) NextConnection(a1 context.Context) (r1 Conn, r2 error)
- func (w *ConnWrapper) OpenStream() (r1 Stream, r2 error)
- func (w *ConnWrapper) OpenStreamSync(a1 context.Context) (r1 Stream, r2 error)
- func (w *ConnWrapper) OpenUniStream() (r1 SendStream, r2 error)
- func (w *ConnWrapper) OpenUniStreamSync(a1 context.Context) (r1 SendStream, r2 error)
- func (w *ConnWrapper) ReceiveDatagram(a1 context.Context) ([]uint8, error)
- func (w *ConnWrapper) RemoteAddr() net.Addr
- func (w *ConnWrapper) SendDatagram(a1 []uint8) error
- type EarlyListener
- type EarlyListenerWrapper
- type Listener
- type ListenerWrapper
- type Path
- type PathWrapper
- type ReceiveStream
- type ReceiveStreamWrapper
- type SendStream
- type SendStreamWrapper
- func (w *SendStreamWrapper) CancelWrite(a1 qerr.StreamErrorCode)
- func (w *SendStreamWrapper) Close() error
- func (w *SendStreamWrapper) Context() context.Context
- func (w *SendStreamWrapper) SetWriteDeadline(a1 time.Time) error
- func (w *SendStreamWrapper) StreamID() protocol.StreamID
- func (w *SendStreamWrapper) Write(a1 []uint8) (int, error)
- type Stream
- type StreamWrapper
- func (w *StreamWrapper) CancelRead(a1 qerr.StreamErrorCode)
- func (w *StreamWrapper) CancelWrite(a1 qerr.StreamErrorCode)
- func (w *StreamWrapper) Close() error
- func (w *StreamWrapper) Context() context.Context
- func (w *StreamWrapper) Read(a1 []uint8) (int, error)
- func (w *StreamWrapper) SetDeadline(a1 time.Time) error
- func (w *StreamWrapper) SetReadDeadline(a1 time.Time) error
- func (w *StreamWrapper) SetWriteDeadline(a1 time.Time) error
- func (w *StreamWrapper) StreamID() protocol.StreamID
- func (w *StreamWrapper) Write(a1 []uint8) (int, error)
- type Transport
- type TransportWrapper
- func (w *TransportWrapper) Close() error
- func (w *TransportWrapper) Dial(a1 context.Context, a2 net.Addr, a3 *tls.Config, a4 *quic.Config) (r1 Conn, r2 error)
- func (w *TransportWrapper) DialEarly(a1 context.Context, a2 net.Addr, a3 *tls.Config, a4 *quic.Config) (r1 Conn, r2 error)
- func (w *TransportWrapper) Listen(a1 *tls.Config, a2 *quic.Config) (r1 Listener, r2 error)
- func (w *TransportWrapper) ListenEarly(a1 *tls.Config, a2 *quic.Config) (r1 EarlyListener, r2 error)
- func (w *TransportWrapper) ReadNonQUICPacket(a1 context.Context, a2 []uint8) (int, net.Addr, error)
- func (w *TransportWrapper) WriteTo(a1 []uint8, a2 net.Addr) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface {
AcceptStream(context.Context) (Stream, error)
AcceptUniStream(context.Context) (ReceiveStream, error)
AddPath(Transport) (Path, error)
CloseWithError(qerr.ApplicationErrorCode, string) error
ConnectionState() quic.ConnectionState
Context() context.Context
HandshakeComplete() <-chan struct{}
LocalAddr() net.Addr
NextConnection(context.Context) (Conn, error)
OpenStream() (Stream, error)
OpenStreamSync(context.Context) (Stream, error)
OpenUniStream() (SendStream, error)
OpenUniStreamSync(context.Context) (SendStream, error)
ReceiveDatagram(context.Context) ([]uint8, error)
RemoteAddr() net.Addr
SendDatagram([]uint8) error
}
Conn is an auto-generated interface for quic.Conn
type ConnWrapper ¶
type ConnWrapper struct {
Base *quic.Conn
}
ConnWrapper is an auto-generated wrapper for quic.Conn
func (*ConnWrapper) AcceptStream ¶
func (w *ConnWrapper) AcceptStream(a1 context.Context) (r1 Stream, r2 error)
func (*ConnWrapper) AcceptUniStream ¶
func (w *ConnWrapper) AcceptUniStream(a1 context.Context) (r1 ReceiveStream, r2 error)
func (*ConnWrapper) CloseWithError ¶
func (w *ConnWrapper) CloseWithError(a1 qerr.ApplicationErrorCode, a2 string) error
func (*ConnWrapper) ConnectionState ¶
func (w *ConnWrapper) ConnectionState() quic.ConnectionState
func (*ConnWrapper) Context ¶
func (w *ConnWrapper) Context() context.Context
func (*ConnWrapper) HandshakeComplete ¶
func (w *ConnWrapper) HandshakeComplete() <-chan struct{}
func (*ConnWrapper) LocalAddr ¶
func (w *ConnWrapper) LocalAddr() net.Addr
func (*ConnWrapper) NextConnection ¶
func (w *ConnWrapper) NextConnection(a1 context.Context) (r1 Conn, r2 error)
func (*ConnWrapper) OpenStream ¶
func (w *ConnWrapper) OpenStream() (r1 Stream, r2 error)
func (*ConnWrapper) OpenStreamSync ¶
func (w *ConnWrapper) OpenStreamSync(a1 context.Context) (r1 Stream, r2 error)
func (*ConnWrapper) OpenUniStream ¶
func (w *ConnWrapper) OpenUniStream() (r1 SendStream, r2 error)
func (*ConnWrapper) OpenUniStreamSync ¶
func (w *ConnWrapper) OpenUniStreamSync(a1 context.Context) (r1 SendStream, r2 error)
func (*ConnWrapper) ReceiveDatagram ¶
func (w *ConnWrapper) ReceiveDatagram(a1 context.Context) ([]uint8, error)
func (*ConnWrapper) RemoteAddr ¶
func (w *ConnWrapper) RemoteAddr() net.Addr
func (*ConnWrapper) SendDatagram ¶
func (w *ConnWrapper) SendDatagram(a1 []uint8) error
type EarlyListener ¶
type EarlyListener interface {
Accept(context.Context) (Conn, error)
Addr() net.Addr
Close() error
}
EarlyListener is an auto-generated interface for quic.EarlyListener
type EarlyListenerWrapper ¶
type EarlyListenerWrapper struct {
Base *quic.EarlyListener
}
EarlyListenerWrapper is an auto-generated wrapper for quic.EarlyListener
func (*EarlyListenerWrapper) Accept ¶
func (w *EarlyListenerWrapper) Accept(a1 context.Context) (r1 Conn, r2 error)
func (*EarlyListenerWrapper) Addr ¶
func (w *EarlyListenerWrapper) Addr() net.Addr
func (*EarlyListenerWrapper) Close ¶
func (w *EarlyListenerWrapper) Close() error
type Listener ¶
Listener is an auto-generated interface for quic.Listener
type ListenerWrapper ¶
type ListenerWrapper struct {
Base *quic.Listener
}
ListenerWrapper is an auto-generated wrapper for quic.Listener
func (*ListenerWrapper) Accept ¶
func (w *ListenerWrapper) Accept(a1 context.Context) (r1 Conn, r2 error)
func (*ListenerWrapper) Addr ¶
func (w *ListenerWrapper) Addr() net.Addr
func (*ListenerWrapper) Close ¶
func (w *ListenerWrapper) Close() error
type PathWrapper ¶
type PathWrapper struct {
Base *quic.Path
}
PathWrapper is an auto-generated wrapper for quic.Path
func (*PathWrapper) Close ¶
func (w *PathWrapper) Close() error
func (*PathWrapper) Switch ¶
func (w *PathWrapper) Switch() error
type ReceiveStream ¶
type ReceiveStream interface {
CancelRead(qerr.StreamErrorCode)
Read([]uint8) (int, error)
SetReadDeadline(time.Time) error
StreamID() protocol.StreamID
}
ReceiveStream is an auto-generated interface for quic.ReceiveStream
type ReceiveStreamWrapper ¶
type ReceiveStreamWrapper struct {
Base *quic.ReceiveStream
}
ReceiveStreamWrapper is an auto-generated wrapper for quic.ReceiveStream
func (*ReceiveStreamWrapper) CancelRead ¶
func (w *ReceiveStreamWrapper) CancelRead(a1 qerr.StreamErrorCode)
func (*ReceiveStreamWrapper) SetReadDeadline ¶
func (w *ReceiveStreamWrapper) SetReadDeadline(a1 time.Time) error
func (*ReceiveStreamWrapper) StreamID ¶
func (w *ReceiveStreamWrapper) StreamID() protocol.StreamID
type SendStream ¶
type SendStream interface {
CancelWrite(qerr.StreamErrorCode)
Close() error
Context() context.Context
SetWriteDeadline(time.Time) error
StreamID() protocol.StreamID
Write([]uint8) (int, error)
}
SendStream is an auto-generated interface for quic.SendStream
type SendStreamWrapper ¶
type SendStreamWrapper struct {
Base *quic.SendStream
}
SendStreamWrapper is an auto-generated wrapper for quic.SendStream
func (*SendStreamWrapper) CancelWrite ¶
func (w *SendStreamWrapper) CancelWrite(a1 qerr.StreamErrorCode)
func (*SendStreamWrapper) Close ¶
func (w *SendStreamWrapper) Close() error
func (*SendStreamWrapper) Context ¶
func (w *SendStreamWrapper) Context() context.Context
func (*SendStreamWrapper) SetWriteDeadline ¶
func (w *SendStreamWrapper) SetWriteDeadline(a1 time.Time) error
func (*SendStreamWrapper) StreamID ¶
func (w *SendStreamWrapper) StreamID() protocol.StreamID
type Stream ¶
type Stream interface {
CancelRead(qerr.StreamErrorCode)
CancelWrite(qerr.StreamErrorCode)
Close() error
Context() context.Context
Read([]uint8) (int, error)
SetDeadline(time.Time) error
SetReadDeadline(time.Time) error
SetWriteDeadline(time.Time) error
StreamID() protocol.StreamID
Write([]uint8) (int, error)
}
Stream is an auto-generated interface for quic.Stream
type StreamWrapper ¶
type StreamWrapper struct {
Base *quic.Stream
}
StreamWrapper is an auto-generated wrapper for quic.Stream
func (*StreamWrapper) CancelRead ¶
func (w *StreamWrapper) CancelRead(a1 qerr.StreamErrorCode)
func (*StreamWrapper) CancelWrite ¶
func (w *StreamWrapper) CancelWrite(a1 qerr.StreamErrorCode)
func (*StreamWrapper) Close ¶
func (w *StreamWrapper) Close() error
func (*StreamWrapper) Context ¶
func (w *StreamWrapper) Context() context.Context
func (*StreamWrapper) SetDeadline ¶
func (w *StreamWrapper) SetDeadline(a1 time.Time) error
func (*StreamWrapper) SetReadDeadline ¶
func (w *StreamWrapper) SetReadDeadline(a1 time.Time) error
func (*StreamWrapper) SetWriteDeadline ¶
func (w *StreamWrapper) SetWriteDeadline(a1 time.Time) error
func (*StreamWrapper) StreamID ¶
func (w *StreamWrapper) StreamID() protocol.StreamID
type Transport ¶
type Transport interface {
Close() error
Dial(context.Context, net.Addr, *tls.Config, *quic.Config) (Conn, error)
DialEarly(context.Context, net.Addr, *tls.Config, *quic.Config) (Conn, error)
Listen(*tls.Config, *quic.Config) (Listener, error)
ListenEarly(*tls.Config, *quic.Config) (EarlyListener, error)
ReadNonQUICPacket(context.Context, []uint8) (int, net.Addr, error)
WriteTo([]uint8, net.Addr) (int, error)
}
Transport is an auto-generated interface for quic.Transport
type TransportWrapper ¶
type TransportWrapper struct {
Base *quic.Transport
}
TransportWrapper is an auto-generated wrapper for quic.Transport
func (*TransportWrapper) Close ¶
func (w *TransportWrapper) Close() error
func (*TransportWrapper) Listen ¶
func (w *TransportWrapper) Listen(a1 *tls.Config, a2 *quic.Config) (r1 Listener, r2 error)
func (*TransportWrapper) ListenEarly ¶
func (w *TransportWrapper) ListenEarly(a1 *tls.Config, a2 *quic.Config) (r1 EarlyListener, r2 error)