Versions in this module Expand all Collapse all v0 v0.6.0 Oct 30, 2026 Changes in this version + const EventTest + var ErrChannelNotFound = errors.New("notification channel not found") + func IsKnownEvent(t sharednotify.EventType) bool + type Channel struct + Active bool + CreatedAt time.Time + Events []sharednotify.EventType + ID string + Name string + OrgID string + Secret string + SecretUnreadable bool + Settings Settings + Type ChannelType + UpdatedAt time.Time + func (c *Channel) ApplyUpdate(u ChannelUpdate) error + func (c *Channel) SecretHint() string + func (c *Channel) Subscribes(e sharednotify.EventType) bool + func (c *Channel) Validate() error + type ChannelType string + const ChannelEmail + const ChannelSlack + const ChannelTelegram + func ChannelTypes() []ChannelType + type ChannelUpdate struct + Active *bool + Events *[]sharednotify.EventType + Name *string + Secret *string + Settings *Settings + type Delivery struct + Attempts int + ChannelID string + ChannelName string + ChannelType ChannelType + CreatedAt time.Time + Error string + Event sharednotify.EventType + ID string + OrgID string + Status DeliveryStatus + Title string + type DeliveryStatus string + const DeliveryFailed + const DeliverySent + type EventSpec struct + DefaultOn bool + Description string + Type sharednotify.EventType + func EventCatalog() []EventSpec + type Message struct + Event sharednotify.EventType + Fields []sharednotify.Field + OccurredAt time.Time + Severity sharednotify.Severity + Summary string + Title string + func NewMessage(e sharednotify.Event) Message + func TestMessage(ch *Channel) Message + type SMTPSecurity string + const SMTPNone + const SMTPStartTLS + const SMTPTLS + type Settings struct + ChatID string + From string + SMTPHost string + SMTPPort int + SMTPSecurity SMTPSecurity + To []string + Username string + type ValidationError struct + Field string + Reason string + func (e *ValidationError) Error() string