Documentation
¶
Overview ¶
Package mattermost implents a Mattermost client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Text string `json:"text,omitempty"`
Username string `json:"username,omitempty"`
IconURL string `json:"icon_url,omitempty"`
IconEmoji string `json:"icon_emoji,omitempty"`
Channel string `json:"channel,omitempty"`
Props map[string]any `json:"props,omitempty"`
Attachments []any `json:"attachments,omitempty"`
}
Message is the request body for a Mattermost message.
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier sends notifications to a Mattermost webhook.
func NewNotifier ¶
func NewNotifier( cfg cfgmodel.NotificationTargetConfig, logger *slog.Logger, client *Client, ) *Notifier
NewNotifier creates a new MattermostNotifier.
Click to show internal directories.
Click to hide internal directories.