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 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.
Click to show internal directories.
Click to hide internal directories.