github.com/tumi8/quic-go@v0.37.4-tum/noninternal/ackhandler/frame.go (about)

     1  package ackhandler
     2  
     3  import "github.com/tumi8/quic-go/noninternal/wire"
     4  
     5  // FrameHandler handles the acknowledgement and the loss of a frame.
     6  type FrameHandler interface {
     7  	OnAcked(wire.Frame)
     8  	OnLost(wire.Frame)
     9  }
    10  
    11  type Frame struct {
    12  	Frame   wire.Frame // nil if the frame has already been acknowledged in another packet
    13  	Handler FrameHandler
    14  }
    15  
    16  type StreamFrame struct {
    17  	Frame   *wire.StreamFrame
    18  	Handler FrameHandler
    19  }