-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move common BW estimator types to internal package
Avoids import loops but still keeps common types like DataRate and PacketResult available for pkg/cc/interceptor and new bandwidth estimators.
- Loading branch information
1 parent
f33f518
commit 57e9724
Showing
12 changed files
with
177 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package types | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/pion/rtp" | ||
) | ||
|
||
type SentPacket struct { | ||
SendTime time.Time | ||
Header rtp.Header | ||
} | ||
|
||
// PacketResult holds information about a packet and if/when it has been | ||
// sent/received. | ||
type PacketResult struct { | ||
SentPacket SentPacket | ||
ReceiveTime time.Time | ||
Received bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.