Documentation ¶
Index ¶
- type CallTracker
- func (c *CallTracker) EndCall(ctx context.Context, packet models.Packet)
- func (c *CallTracker) IsCallActive(ctx context.Context, packet models.Packet) bool
- func (c *CallTracker) ProcessCallPacket(ctx context.Context, packet models.Packet)
- func (c *CallTracker) StartCall(ctx context.Context, packet models.Packet)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.