forked from quic-go/quic-go
qlog: split serializiation and event definitions, remove logging abstraction (#5356)
* qlog: implement a Trace and a Writer struct * qlog: rename Trace to FileSeq * split qlog trace writer and QUIC qlog events into separate packages * use the new qlog.Recorder instead of the logging.ConnectionTracer
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/quic-go/quic-go/internal/handshake"
|
||||
"github.com/quic-go/quic-go/internal/protocol"
|
||||
"github.com/quic-go/quic-go/logging"
|
||||
"github.com/quic-go/quic-go/qlogwriter"
|
||||
)
|
||||
|
||||
// The StreamID is the ID of a QUIC stream.
|
||||
@@ -189,7 +189,8 @@ type Config struct {
|
||||
// Enable QUIC Stream Resets with Partial Delivery.
|
||||
// See https://datatracker.ietf.org/doc/html/draft-ietf-quic-reliable-stream-reset-07.
|
||||
EnableStreamResetPartialDelivery bool
|
||||
Tracer func(context.Context, logging.Perspective, ConnectionID) *logging.ConnectionTracer
|
||||
|
||||
Tracer func(ctx context.Context, isClient bool, connID ConnectionID) qlogwriter.Trace
|
||||
}
|
||||
|
||||
// ClientHelloInfo contains information about an incoming connection attempt.
|
||||
|
||||
Reference in New Issue
Block a user