Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapMattermostToNotificationChannel ¶
func MapMattermostToNotificationChannel(mail MattermostNotificationChannelRequest) models.NotificationChannel
Types ¶
type MattermostNotificationChannelCheckRequest ¶
type MattermostNotificationChannelCheckRequest struct {
WebhookUrl string `json:"webhookUrl"`
}
MattermostNotificationChannelCheckRequest mattermost notification channel check request
func (*MattermostNotificationChannelCheckRequest) Cleanup ¶
func (r *MattermostNotificationChannelCheckRequest) Cleanup()
func (*MattermostNotificationChannelCheckRequest) Validate ¶
func (r *MattermostNotificationChannelCheckRequest) Validate() models.ValidationErrors
type MattermostNotificationChannelRequest ¶
type MattermostNotificationChannelRequest struct {
ChannelName string `json:"channelName"`
WebhookUrl string `json:"webhookUrl"`
Description string `json:"description"`
}
MattermostNotificationChannelRequest mattermost notification channel request
func (*MattermostNotificationChannelRequest) Cleanup ¶
func (m *MattermostNotificationChannelRequest) Cleanup()
func (MattermostNotificationChannelRequest) Validate ¶
func (m MattermostNotificationChannelRequest) Validate() models.ValidationErrors
type MattermostNotificationChannelResponse ¶
type MattermostNotificationChannelResponse struct {
Id string `json:"id"`
ChannelName string `json:"channelName"`
WebhookUrl string `json:"webhookUrl"`
Description string `json:"description"`
}
func MapNotificationChannelToMattermost ¶
func MapNotificationChannelToMattermost(channel models.NotificationChannel) MattermostNotificationChannelResponse
MapNotificationChannelToMattermost maps NotificationChannel to MattermostNotificationChannelRequest.
func MapNotificationChannelsToMattermost ¶
func MapNotificationChannelsToMattermost(channels []models.NotificationChannel) []MattermostNotificationChannelResponse
MapNotificationChannelsToMattermost maps a slice of NotificationChannel to MattermostNotificationChannelRequest.
Click to show internal directories.
Click to hide internal directories.