openbridge

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 18 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
	Tracer        trace.Tracer

	DB    *gorm.DB
	Redis redisClient

	CallTracker *calltracker.CallTracker
}

OpenBridge is the same as HBRP, but with a single packet type.

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) CancelSubscription

func (m *SubscriptionManager) CancelSubscription(p models.Peer)

func (*SubscriptionManager) Subscribe

func (m *SubscriptionManager) Subscribe(ctx context.Context, redis *redis.Client, p models.Peer)

Jump to

Keyboard shortcuts

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