summary

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSatelliteDBConfigured

func IsSatelliteDBConfigured() bool

IsSatelliteDBConfigured checks whether the satellite DB configuration is present.

func SetSummaryNotifier

func SetSummaryNotifier(fn notifyFunc)

SetSummaryNotifier sets the callback used to deliver summary notifications.

Types

type CallMetadata

type CallMetadata struct {
	Src     string
	Dst     string
	CNam    string
	DstCNam string
}

type SummaryMessage

type SummaryMessage struct {
	UniqueID      string `json:"uniqueid"`
	LinkedID      string `json:"linkedid,omitempty"`
	DisplayName   string `json:"display_name,omitempty"`
	DisplayNumber string `json:"display_number,omitempty"`
	Username      string `json:"-"`
}

SummaryMessage represents the payload sent over WebSocket when a summary is available.

func (SummaryMessage) TargetUsername

func (m SummaryMessage) TargetUsername() string

type WatchStartResult

type WatchStartResult string
const (
	WatchStarted       WatchStartResult = "started"
	WatchAlreadyActive WatchStartResult = "already_active"
	WatchMisconfigured WatchStartResult = "misconfigured"
	WatchInvalidInput  WatchStartResult = "invalid_input"
)

func StartSummaryWatch

func StartSummaryWatch(uniqueID, username string) WatchStartResult

StartSummaryWatch registers a watcher for the given user and unique ID. It returns a result that distinguishes whether the watcher started, was already active, or could not start.

func StartSummaryWatchWithLinkedID added in v0.5.3

func StartSummaryWatchWithLinkedID(uniqueID, linkedID, username string) WatchStartResult

StartSummaryWatchWithLinkedID registers a watcher and keeps the linked ID for the notification payload.

Jump to

Keyboard shortcuts

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