A very simple leaky bucket pacer. (#1899)

This commit is contained in:
Raja Subramanian
2023-07-23 10:11:35 +05:30
committed by GitHub
parent 7e6aa00426
commit 43fa6f57d1
3 changed files with 152 additions and 5 deletions
+3
View File
@@ -26,6 +26,9 @@ type Packet struct {
type Pacer interface {
Enqueue(p Packet)
Stop()
SetInterval(interval time.Duration)
SetBitrate(bitrate int)
}
// ------------------------------------------------