summary

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: GPL-3.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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