hbrp

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

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.

func (*Server) Start

func (s *Server) Start(ctx context.Context)

Start starts the DMR server.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context)

Stop stops the DMR server.

func (*Server) TrackCall

func (s *Server) TrackCall(ctx context.Context, packet models.Packet, isVoice bool)

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 (m *SubscriptionManager) ListenForCallsOn(ctx context.Context, redis *redis.Client, p models.Repeater, talkgroupID uint)

func (*SubscriptionManager) ListenForWebsocket added in v1.0.15

func (m *SubscriptionManager) ListenForWebsocket(ctx context.Context, db *gorm.DB, redis *redis.Client, userID uint)

Jump to

Keyboard shortcuts

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