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 { AccessToken string `mapstructure:"access_token"` Messages domain.NotificationMessages }
type Notifier ¶
type Notifier struct { Messages domain.NotificationMessages // contains filtered or unexported fields }
func NewNotifier ¶
func NewNotifier(config *Config, httpClient utils.HTTPClient) *Notifier
Click to show internal directories.
Click to hide internal directories.