Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMessage ¶
func ParseMessage(message domain.NotificationMessage, templates domain.NotificationMessages, defaultTemplateFiles embed.FS) (string, error)
Types ¶
type Config ¶
type Config struct { Workspaces []SlackWorkspace `mapstructure:"workspaces"` Messages domain.NotificationMessages }
type Notifier ¶
type Notifier struct { Messages domain.NotificationMessages // contains filtered or unexported fields }
func NewNotifier ¶
func (*Notifier) GetSlackWorkspaceForUser ¶ added in v0.7.6
func (n *Notifier) GetSlackWorkspaceForUser(email string) (*SlackWorkspace, error)
type SlackWorkspace ¶ added in v0.7.6
type WorkSpaceConfig ¶ added in v0.7.6
type WorkSpaceConfig struct {
Workspaces []SlackWorkspace `mapstructure:"workspaces"`
}
Click to show internal directories.
Click to hide internal directories.