stats

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Inbound  = CallDir(false)
	Outbound = CallDir(true)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallDir

type CallDir bool

func (CallDir) String

func (d CallDir) String() string

type CallMonitor

type CallMonitor struct {
	// contains filtered or unexported fields
}

func (*CallMonitor) CallDur

func (c *CallMonitor) CallDur() func() time.Duration

func (*CallMonitor) CallEnd

func (c *CallMonitor) CallEnd()

func (*CallMonitor) CallStart

func (c *CallMonitor) CallStart()

func (*CallMonitor) CallTerminate

func (c *CallMonitor) CallTerminate(reason string)

func (*CallMonitor) CallTerminationFailure added in v1.3.0

func (c *CallMonitor) CallTerminationFailure()

func (*CallMonitor) CheckDur

func (c *CallMonitor) CheckDur() func(dt time.Duration)

func (*CallMonitor) InviteAccept

func (c *CallMonitor) InviteAccept()

func (*CallMonitor) InviteError

func (c *CallMonitor) InviteError(reason string)

func (*CallMonitor) InviteErrorShort

func (c *CallMonitor) InviteErrorShort(reason string)

func (*CallMonitor) InviteReq

func (c *CallMonitor) InviteReq()

func (*CallMonitor) JoinDur

func (c *CallMonitor) JoinDur() func() time.Duration

func (*CallMonitor) RTPPacketRecv

func (c *CallMonitor) RTPPacketRecv(payloadType string)

func (*CallMonitor) RTPPacketSend

func (c *CallMonitor) RTPPacketSend(payloadType string)

func (*CallMonitor) SDPSize

func (c *CallMonitor) SDPSize(sz int, isOffer bool)

func (*CallMonitor) SessionDur

func (c *CallMonitor) SessionDur() func() time.Duration

func (*CallMonitor) StageDur added in v1.3.0

func (c *CallMonitor) StageDur(stage string) prometheus.Observer

func (*CallMonitor) StageDurTimer added in v1.3.0

func (c *CallMonitor) StageDurTimer(stage string) func() time.Duration

type HealthStatus

type HealthStatus int
const (
	HealthOK HealthStatus = iota
	HealthNotStarted
	HealthStopped
	HealthUnderLoad
	HealthDisabled
)

func (HealthStatus) String

func (i HealthStatus) String() string

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

func NewMonitor

func NewMonitor(conf *config.Config) (*Monitor, error)

func (*Monitor) Health

func (m *Monitor) Health() HealthStatus

func (*Monitor) IdleCPU

func (m *Monitor) IdleCPU() float64

func (*Monitor) InviteReqRaw

func (m *Monitor) InviteReqRaw(dir CallDir)

func (*Monitor) NewCall

func (m *Monitor) NewCall(dir CallDir, fromHost, toHost string) *CallMonitor

func (*Monitor) Shutdown

func (m *Monitor) Shutdown()

func (*Monitor) Start

func (m *Monitor) Start(conf *config.Config) error

func (*Monitor) Stop

func (m *Monitor) Stop()

func (*Monitor) TransferFailed

func (m *Monitor) TransferFailed(dir CallDir, reason string, changeActive bool)

func (*Monitor) TransferStarted

func (m *Monitor) TransferStarted(dir CallDir)

func (*Monitor) TransferSucceeded

func (m *Monitor) TransferSucceeded(dir CallDir)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL