Documentation
¶
Index ¶
- type DialConfig
- type Endpoint
- func Dial(ctx context.Context, cfg DialConfig) (*Endpoint, error)
- func DialConnections(ctx context.Context, cfg DialConfig, count int) (*Endpoint, error)
- func Listen(ctx context.Context, cfg ListenConfig) (*Endpoint, error)
- func ListenConnectionsWithReady(ctx context.Context, cfg ListenConfig, count int, ready func() error) (*Endpoint, error)
- func ListenWithReady(ctx context.Context, cfg ListenConfig, ready func() error) (*Endpoint, error)
- func (e *Endpoint) AcceptReceiveStream(ctx context.Context) (io.ReadCloser, error)
- func (e *Endpoint) AcceptReceiveStreams(ctx context.Context, count int) ([]io.ReadCloser, error)
- func (e *Endpoint) Close() error
- func (e *Endpoint) CloseWithError(code uint64, reason string) error
- func (e *Endpoint) OpenSendStream(ctx context.Context) (io.WriteCloser, error)
- func (e *Endpoint) OpenSendStreams(ctx context.Context, count int) ([]io.WriteCloser, error)
- func (e *Endpoint) Stats() Stats
- func (e *Endpoint) WaitClosed(ctx context.Context) error
- type ListenConfig
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialConfig ¶
type DialConfig struct {
PacketConn net.PacketConn
RemoteAddr net.Addr
Identity quicpath.SessionIdentity
PeerPublic [32]byte
}
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func DialConnections ¶
func ListenWithReady ¶
func (*Endpoint) AcceptReceiveStream ¶
func (*Endpoint) AcceptReceiveStreams ¶
func (*Endpoint) CloseWithError ¶
func (*Endpoint) OpenSendStream ¶
func (*Endpoint) OpenSendStreams ¶
type ListenConfig ¶
type ListenConfig struct {
PacketConn net.PacketConn
Identity quicpath.SessionIdentity
PeerPublic [32]byte
}
type Stats ¶
type Stats struct {
BytesSent int64
BytesReceived int64
TelemetryPresent bool
Connections uint32
Streams uint32
PacketsSent uint64
PacketsReceived uint64
PacketsLost uint64
WireBytesSent uint64
RecoveryWireBytes uint64
SmoothedRTT time.Duration
HandshakeDuration time.Duration
FirstByteDuration time.Duration
StreamBytesSent uint64
StreamBytesReceived uint64
Version string
RawSocketBackend string
NativeSendBackend string
NativeReceiveBackend string
NativeGSO string
NativeReceiveBatch string
HandshakeMS int64
FirstByteMS int64
OpenedAt time.Time
HandshakeAt time.Time
FirstByteAt time.Time
ClosedAt time.Time
CloseReason string
}
Click to show internal directories.
Click to hide internal directories.