Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) SetBitrate ¶
func (*Base) SetInterval ¶
type ExtensionData ¶
type Factory ¶
func NewPacerFactory ¶
func NewPacerFactory(pacerType PacerType, opts ...PacerFactoryOpt) Factory
type NoQueue ¶
type NoQueue struct { *Base // contains filtered or unexported fields }
func NewNoQueue ¶
type PacerFactory ¶
type PacerFactory struct {
// contains filtered or unexported fields
}
func (*PacerFactory) NewPacer ¶
func (f *PacerFactory) NewPacer() (Pacer, error)
type PacerFactoryOpt ¶
type PacerFactoryOpt func(params *pacerFactoryParams)
func WithBitrate ¶
func WithBitrate(bitrate int) PacerFactoryOpt
func WithMaxLatency ¶
func WithMaxLatency(maxLatency time.Duration) PacerFactoryOpt
func WithSendInterval ¶
func WithSendInterval(sendInterval time.Duration) PacerFactoryOpt
func Withlogger ¶
func Withlogger(logger logger.Logger) PacerFactoryOpt
type PacerLeakyBucket ¶
type PacerLeakyBucket struct { *Base // contains filtered or unexported fields }
func NewPacerLeakyBucket ¶
func (*PacerLeakyBucket) Enqueue ¶
func (p *PacerLeakyBucket) Enqueue(pkt *Packet)
func (*PacerLeakyBucket) SetBitrate ¶
func (p *PacerLeakyBucket) SetBitrate(bitrate int)
func (*PacerLeakyBucket) Start ¶
func (p *PacerLeakyBucket) Start()
func (*PacerLeakyBucket) Stop ¶
func (p *PacerLeakyBucket) Stop()
type PacketTime ¶
type PacketTime struct {
// contains filtered or unexported fields
}
func NewPacketTime ¶
func NewPacketTime() *PacketTime
func (*PacketTime) Get ¶
func (p *PacketTime) Get() time.Time
type PassThrough ¶
type PassThrough struct {
*Base
}
func NewPassThrough ¶
func NewPassThrough(logger logger.Logger) *PassThrough
func (*PassThrough) Enqueue ¶
func (p *PassThrough) Enqueue(pkt *Packet)
func (*PassThrough) Start ¶
func (p *PassThrough) Start()
func (*PassThrough) Stop ¶
func (p *PassThrough) Stop()
Click to show internal directories.
Click to hide internal directories.