Documentation ¶
Index ¶
- type CallTracker
- type DMRServer
- type Parrot
- func (p *Parrot) GetStream(ctx context.Context, streamId uint) []models.Packet
- func (p *Parrot) IsStarted(ctx context.Context, streamId uint) bool
- func (p *Parrot) RecordPacket(ctx context.Context, streamId uint, packet models.Packet)
- func (p *Parrot) StartStream(ctx context.Context, streamId uint, repeaterId uint) bool
- func (p *Parrot) StopStream(ctx context.Context, streamId uint)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallTracker ¶
type CallTracker struct { DB *gorm.DB Redis *redis.Client CallEndTimers map[uint]*time.Timer InFlightCalls map[uint]*models.Call }
func NewCallTracker ¶
func NewCallTracker(db *gorm.DB, redis *redis.Client) *CallTracker
func (*CallTracker) EndCall ¶
func (c *CallTracker) EndCall(ctx context.Context, packet models.Packet)
func (*CallTracker) IsCallActive ¶
func (c *CallTracker) IsCallActive(packet models.Packet) bool
func (*CallTracker) ProcessCallPacket ¶
func (c *CallTracker) ProcessCallPacket(ctx context.Context, packet models.Packet)
type DMRServer ¶
type DMRServer struct { Buffer []byte SocketAddress net.UDPAddr Server *net.UDPConn Started bool Parrot *Parrot DB *gorm.DB Redis redisRepeaterStorage CallTracker *CallTracker }
func MakeServer ¶
type Parrot ¶
type Parrot struct {
Redis redisParrotStorage
}
func (*Parrot) RecordPacket ¶
func (*Parrot) StartStream ¶
Click to show internal directories.
Click to hide internal directories.