Documentation ¶
Index ¶
- Constants
- func ClientInfoWithoutAddress(c *livekit.ClientInfo) *livekit.ClientInfo
- func ContextWithAttempt(ctx context.Context, attempt int) context.Context
- func ContextWithLogger(ctx context.Context, logger logger.Logger) context.Context
- func GetAttempt(ctx context.Context) int
- func GetLogger(ctx context.Context) logger.Logger
- func MedianFloat32(input []float32) float32
- type ChangeNotifier
- type ChangeNotifierManager
- type OpsQueue
Constants ¶
View Source
const ( ComponentPub = "pub" ComponentSub = "sub" ComponentRoom = "room" ComponentAPI = "api" ComponentTransport = "transport" ComponentSFU = "sfu" // transport subcomponents ComponentCongestionControl = "cc" )
Variables ¶
This section is empty.
Functions ¶
func ClientInfoWithoutAddress ¶ added in v1.5.2
func ClientInfoWithoutAddress(c *livekit.ClientInfo) *livekit.ClientInfo
func ContextWithAttempt ¶ added in v1.3.4
func ContextWithLogger ¶ added in v1.5.2
func GetAttempt ¶ added in v1.3.4
func MedianFloat32 ¶ added in v1.4.3
MedianFloat32 gets median value for an array of float32
Types ¶
type ChangeNotifier ¶ added in v1.3.4
type ChangeNotifier struct {
// contains filtered or unexported fields
}
func NewChangeNotifier ¶ added in v1.3.4
func NewChangeNotifier() *ChangeNotifier
func (*ChangeNotifier) AddObserver ¶ added in v1.3.4
func (n *ChangeNotifier) AddObserver(key string, onChanged func())
func (*ChangeNotifier) HasObservers ¶ added in v1.3.4
func (n *ChangeNotifier) HasObservers() bool
func (*ChangeNotifier) NotifyChanged ¶ added in v1.3.4
func (n *ChangeNotifier) NotifyChanged()
func (*ChangeNotifier) RemoveObserver ¶ added in v1.3.4
func (n *ChangeNotifier) RemoveObserver(key string)
type ChangeNotifierManager ¶ added in v1.3.4
type ChangeNotifierManager struct {
// contains filtered or unexported fields
}
func NewChangeNotifierManager ¶ added in v1.3.4
func NewChangeNotifierManager() *ChangeNotifierManager
func (*ChangeNotifierManager) GetNotifier ¶ added in v1.3.4
func (m *ChangeNotifierManager) GetNotifier(key string) *ChangeNotifier
func (*ChangeNotifierManager) GetOrCreateNotifier ¶ added in v1.3.4
func (m *ChangeNotifierManager) GetOrCreateNotifier(key string) *ChangeNotifier
func (*ChangeNotifierManager) RemoveNotifier ¶ added in v1.3.4
func (m *ChangeNotifierManager) RemoveNotifier(key string, force bool)
Click to show internal directories.
Click to hide internal directories.