package udp import ( "context" "time" ) type Congestion interface { Sequence(ctx context.Context) (uint32, error) NextAck() uint32 NextNack() uint32 ReceivedPacket(seq, nack, ack uint32) AwaitEarlyUpdate(ctx context.Context, keepalive time.Duration) (uint32, error) }