calltracker

package
v1.0.60 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallTracker

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

CallTracker is a struct that holds the state of the calls that are currently in progress.

func NewCallTracker

func NewCallTracker(db *gorm.DB, redis *redis.Client) *CallTracker

NewCallTracker creates a new CallTracker.

func (*CallTracker) EndCall

func (c *CallTracker) EndCall(ctx context.Context, packet models.Packet)

EndCall ends a call.

func (*CallTracker) IsCallActive

func (c *CallTracker) IsCallActive(ctx context.Context, packet models.Packet) bool

IsCallActive checks if a call is active.

func (*CallTracker) ProcessCallPacket

func (c *CallTracker) ProcessCallPacket(ctx context.Context, packet models.Packet)

ProcessCallPacket processes a packet and updates the call.

func (*CallTracker) StartCall

func (c *CallTracker) StartCall(ctx context.Context, packet models.Packet)

StartCall starts tracking a new call.

Jump to

Keyboard shortcuts

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