mattermostdto

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type MattermostNotificationChannelCheckRequest

type MattermostNotificationChannelCheckRequest struct {
	WebhookUrl string `json:"webhookUrl"`
}

MattermostNotificationChannelCheckRequest mattermost notification channel check request

func (*MattermostNotificationChannelCheckRequest) Cleanup

func (*MattermostNotificationChannelCheckRequest) Validate

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 (MattermostNotificationChannelRequest) Validate

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL