Versions in this module Expand all Collapse all v0 v0.2.3 Feb 20, 2026 v0.2.2 Feb 20, 2026 v0.2.1 Feb 19, 2026 v0.2.0 Feb 19, 2026 Changes in this version + const NA + const True + var ErrRateLimit = errors.New("rate limit exceeded") + type ChannelInfo struct + ChannelExists bool + ChannelIsArchived bool + ManagerIsInChannel bool + UserCount int + type ChannelInfoProvider interface + GetChannelInfo func(ctx context.Context, channel string) (*ChannelInfo, error) + ManagedChannels func() []*internal.ChannelSummary + MapChannelNameToIDIfNeeded func(channelName string) string + type FifoQueueConsumer interface + Receive func(ctx context.Context, sinkCh chan<- *types.FifoQueueItem) error + type FifoQueueProducer interface + Send func(ctx context.Context, slackChannelID, dedupID, body string) error + type PrometheusAlert struct + Annotations map[string]string + EndsAt time.Time + Fingerprint string + GeneratorURL string + Labels map[string]string + StartsAt time.Time + Status string + type PrometheusWebhook struct + Alerts []*PrometheusAlert + CommonAnnotations map[string]string + CommonLabels map[string]string + ExternalURL string + GroupKey string + GroupLabels map[string]string + Receiver string + Status string + TruncatedAlerts int + Version string + type Server struct + func New(alertQueue FifoQueueProducer, cacheStore cachestore.StoreInterface, ...) *Server + func (s *Server) Run(ctx context.Context) error + func (s *Server) UpdateSettings(settings *config.APISettings) error + func (s *Server) WithRawAlertConsumer(consumer FifoQueueConsumer) *Server + type SlackClient interface + BotIsInChannel func(ctx context.Context, channelID string) (bool, error) + GetChannelInfo func(ctx context.Context, channelID string) (*slack.Channel, error) + GetUserIDsInChannel func(ctx context.Context, channelID string) (map[string]struct{}, error) + ListBotChannels func(ctx context.Context) ([]*internal.ChannelSummary, error)