mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 11:32:26 +08:00
20 lines
486 B
Go
20 lines
486 B
Go
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package jitterbuffer
|
|
|
|
import (
|
|
"github.com/pion/logging"
|
|
)
|
|
|
|
// ReceiverInterceptorOption can be used to configure ReceiverInterceptor
|
|
type ReceiverInterceptorOption func(d *ReceiverInterceptor) error
|
|
|
|
// Log sets a logger for the interceptor
|
|
func Log(log logging.LeveledLogger) ReceiverInterceptorOption {
|
|
return func(d *ReceiverInterceptor) error {
|
|
d.log = log
|
|
return nil
|
|
}
|
|
}
|