Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) PacketLoss ¶ added in v1.0.13
func (*Buffer) PopSamples ¶ added in v1.0.16
func (*Buffer) UpdateMaxLatency ¶
type Option ¶
type Option func(b *Buffer)
func WithLogger ¶
WithLogger sets a logger which will log packets dropped
func WithPacketDroppedHandler ¶
func WithPacketDroppedHandler(f func()) Option
WithPacketDroppedHandler sets a callback that's called when a packet is dropped. This signifies packet loss.
Click to show internal directories.
Click to hide internal directories.