Documentation ¶
Index ¶
- type Server
- type SubscriptionManager
- func (m *SubscriptionManager) CancelAllRepeaterSubscriptions(p models.Repeater)
- func (m *SubscriptionManager) CancelAllSubscriptions()
- func (m *SubscriptionManager) CancelSubscription(p models.Repeater, talkgroupID uint)
- func (m *SubscriptionManager) ListenForCalls(ctx context.Context, redis *redis.Client, p models.Repeater)
- func (m *SubscriptionManager) ListenForCallsOn(ctx context.Context, redis *redis.Client, p models.Repeater, talkgroupID uint)
- func (m *SubscriptionManager) ListenForWebsocket(ctx context.Context, db *gorm.DB, redis *redis.Client, userID uint)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Buffer []byte SocketAddress net.UDPAddr Server *net.UDPConn Started bool Parrot *parrot.Parrot DB *gorm.DB Redis redisClient CallTracker *calltracker.CallTracker }
Server is the DMR server.
func MakeServer ¶
func MakeServer(db *gorm.DB, redis *redis.Client, callTracker *calltracker.CallTracker) Server
MakeServer creates a new DMR server.
type SubscriptionManager ¶
type SubscriptionManager struct {
// contains filtered or unexported fields
}
func GetSubscriptionManager ¶
func GetSubscriptionManager() *SubscriptionManager
func (*SubscriptionManager) CancelAllRepeaterSubscriptions ¶
func (m *SubscriptionManager) CancelAllRepeaterSubscriptions(p models.Repeater)
func (*SubscriptionManager) CancelAllSubscriptions ¶
func (m *SubscriptionManager) CancelAllSubscriptions()
func (*SubscriptionManager) CancelSubscription ¶
func (m *SubscriptionManager) CancelSubscription(p models.Repeater, talkgroupID uint)
func (*SubscriptionManager) ListenForCalls ¶
func (m *SubscriptionManager) ListenForCalls(ctx context.Context, redis *redis.Client, p models.Repeater)
func (*SubscriptionManager) ListenForCallsOn ¶
func (*SubscriptionManager) ListenForWebsocket ¶ added in v1.0.15
Click to show internal directories.
Click to hide internal directories.