package report
Import Path
github.com/pion/interceptor/pkg/report (on go.dev)
Dependency Relation
imports 8 packages, and imported by one package
Involved Source Files
receiver_interceptor.go
receiver_option.go
receiver_stream.go
Package report provides interceptors to implement sending sender and receiver reports.
sender_interceptor.go
sender_option.go
sender_stream.go
ticker.go
Package-Level Type Names (total 8)
ReceiverInterceptor interceptor generates receiver reports.
NoOp interceptor.NoOp
BindLocalStream lets you modify any outgoing RTP packets. It is called once for per LocalStream. The returned method
will be called once per rtp packet.
BindRTCPReader lets you modify any incoming RTCP packets. It is called once per sender/receiver, however this might
change in the future. The returned method will be called once per packet batch.
BindRTCPWriter lets you modify any outgoing RTCP packets. It is called once per PeerConnection. The returned method
will be called once per packet batch.
BindRemoteStream lets you modify any incoming RTP packets. It is called once for per RemoteStream.
The returned method will be called once per rtp packet.
Close closes the interceptor.
UnbindLocalStream is called when the Stream is removed. It can be used to clean up any data related to that track.
UnbindRemoteStream is called when the Stream is removed. It can be used to clean up any data related to that track.
*ReceiverInterceptor : github.com/pion/interceptor.Interceptor
*ReceiverInterceptor : github.com/prometheus/common/expfmt.Closer
*ReceiverInterceptor : io.Closer
ReceiverInterceptorFactory is a interceptor.Factory for a ReceiverInterceptor.
NewInterceptor constructs a new ReceiverInterceptor.
*ReceiverInterceptorFactory : github.com/pion/interceptor.Factory
func NewReceiverInterceptor(opts ...ReceiverOption) (*ReceiverInterceptorFactory, error)
ReceiverOption can be used to configure ReceiverInterceptor.
func ReceiverInterval(interval time.Duration) ReceiverOption
func ReceiverLog(log logging.LeveledLogger) ReceiverOption
func ReceiverNow(f func() time.Time) ReceiverOption
func NewReceiverInterceptor(opts ...ReceiverOption) (*ReceiverInterceptorFactory, error)
SenderInterceptor interceptor generates sender reports.
NoOp interceptor.NoOp
BindLocalStream lets you modify any outgoing RTP packets. It is called once for per LocalStream. The returned method
will be called once per rtp packet.
BindRTCPReader lets you modify any incoming RTCP packets. It is called once per sender/receiver, however this might
change in the future. The returned method will be called once per packet batch.
BindRTCPWriter lets you modify any outgoing RTCP packets. It is called once per PeerConnection. The returned method
will be called once per packet batch.
BindRemoteStream lets you modify any incoming RTP packets.
It is called once for per RemoteStream. The returned method
will be called once per rtp packet.
Close closes the interceptor.
UnbindLocalStream is called when the Stream is removed. It can be used to clean up any data related to that track.
UnbindRemoteStream is called when the Stream is removed. It can be used to clean up any data related to that track.
*SenderInterceptor : github.com/pion/interceptor.Interceptor
*SenderInterceptor : github.com/prometheus/common/expfmt.Closer
*SenderInterceptor : io.Closer
SenderInterceptorFactory is a interceptor.Factory for a SenderInterceptor.
NewInterceptor constructs a new SenderInterceptor.
*SenderInterceptorFactory : github.com/pion/interceptor.Factory
func NewSenderInterceptor(opts ...SenderOption) (*SenderInterceptorFactory, error)
SenderOption can be used to configure SenderInterceptor.
func SenderInterval(interval time.Duration) SenderOption
func SenderLog(log logging.LeveledLogger) SenderOption
func SenderNow(f func() time.Time) SenderOption
func SenderTicker(f TickerFactory) SenderOption
func SenderUseLatestPacket() SenderOption
func NewSenderInterceptor(opts ...SenderOption) (*SenderInterceptorFactory, error)
Ticker is an interface for *time.Ticker for use with the SenderTicker option.
( Ticker) Ch() <-chan time.Time
( Ticker) Stop()
TickerFactory is a factory to create new tickers.
func SenderTicker(f TickerFactory) SenderOption
Package-Level Functions (total 10)
NewReceiverInterceptor returns a new ReceiverInterceptorFactory.
NewSenderInterceptor returns a new SenderInterceptorFactory.
ReceiverInterval sets send interval for the interceptor.
ReceiverLog sets a logger for the interceptor.
ReceiverNow sets an alternative for the time.Now function.
SenderInterval sets send interval for the interceptor.
SenderLog sets a logger for the interceptor.
SenderNow sets an alternative for the time.Now function.
SenderTicker sets an alternative for the time.NewTicker function.
SenderUseLatestPacket sets the interceptor to always use the latest packet, even
if it appears to be out-of-order.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |