centrifuge Package
Import Path: github.com/systmms/incidents/internal/realtime/centrifuge
Variables
ErrMissingJWTSecret (and others)
Common errors for the Centrifuge package
var ErrMissingJWTSecret ErrMissingRedisURL ErrServiceNotStarted ErrInvalidChannel ErrInvalidUserID ErrPublishFailed ErrUnauthorized ErrChannelNotFound ErrClientDisconnectedTypes
AuthClaims
AuthClaims represents JWT claims for Centrifuge authentication
{<nil> 176 type 0 [0x14000430c40] 0}AuthService
AuthService handles authentication for Centrifuge
{<nil> 730 type 0 [0x14000431180] 0}Methods
NewAuthService
NewAuthService creates a new authentication service
{<nil> <nil> NewAuthService 0x140004cde20 <nil>}BroadcasterAdapter
BroadcasterAdapter adapts the Centrifuge service to work with the Timeline Service’s Broadcaster interface
{<nil> 9018 type 0 [0x140003340c0] 0}Methods
NewBroadcasterAdapter
NewBroadcasterAdapter creates a new broadcaster adapter
{<nil> <nil> NewBroadcasterAdapter 0x140004748c0 <nil>}ChannelConfig
ChannelConfig defines channel-specific settings
{<nil> 21689 type 0 [0x1400023a340] 0}Methods
defaultChannelConfig
defaultChannelConfig returns default channel configuration
{<nil> <nil> defaultChannelConfig 0x140002a71c0 <nil>}ChannelInfo
ParseChannelInfo extracts information from a channel name
{<nil> 14051 type 0 [0x1400039fd40] 0}ChannelPermissions
ChannelPermissions defines permission levels for channels
{<nil> 17417 type 0 [0x140002a4080] 0}ChannelRouter
ChannelRouter handles channel routing and permissions
{<nil> 12374 type 0 [0x1400039f1c0] 0}Methods
NewChannelRouter
NewChannelRouter creates a new channel router
{<nil> <nil> NewChannelRouter 0x14000386760 <nil>}ChannelSettings
ChannelSettings defines settings for specific channel types
{<nil> 22363 type 0 [0x1400023a7c0] 0}ChannelType
ChannelType represents different types of channels
{<nil> 11626 type 0 [0x1400039f040] 0}Constants
const ChannelIncidentsGlobal const ChannelSystemGlobal const ChannelTypeIncident const ChannelTypeIncidentChat const ChannelTypeTimeline const ChannelTypeServices const ChannelTypeUsers const ChannelTypeTeams const ChannelTypeEscalations const ChannelTypeSLAWarnings const ChannelTypeAlertsConfig
Config holds configuration for the Centrifuge integration
{<nil> 20831 type 0 [0x140004b1700] 0}Methods
DefaultConfig
DefaultConfig returns a default configuration
{<nil> <nil> DefaultConfig 0x14000278a20 <nil>}EventType
EventType defines the type of real-time event
{<nil> 8543 type 0 [0x14000471800] 0}Constants
const EventIncidentCreated const EventIncidentUpdated const EventTimelineUpdated const EventConnectorSync const EventSLABreach const EventSystemNotificationService
Service wraps Centrifuge functionality for the incidents platform
{<nil> 28194 type 0 [0x140002a1840] 0}Methods
NewService
NewService creates a new Centrifuge service
{<nil> <nil> NewService 0x1400070b900 <nil>}SubscriptionClaims
SubscriptionClaims represents JWT claims for channel subscription
{<nil> 553 type 0 [0x14000431000] 0}Functions
containsRole
containsRole checks if a role is present in the user’s roles
{<nil> <nil> containsRole 0x14000437420 <nil>}convertEventType
convertEventType converts the existing EventType to our string-based event type
{<nil> <nil> convertEventType 0x14000475ba0 <nil>}matchesPattern
matchesPattern checks if a channel matches a pattern
{<nil> <nil> matchesPattern 0x140002acd60 <nil>}Generated automatically from Go source code. Last updated: 2025-08-25T07:51:05-04:00