mattermostcontroller

package
v0.11.1-alpha7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MattermostController

type MattermostController struct {
	// contains filtered or unexported fields
}

func NewMattermostController

func NewMattermostController(
	router gin.IRouter,
	notificationChannelServicer notificationchannelservice.NotificationChannelService,
	mattermostChannelService notificationchannelservice.MattermostChannelService,
	auth gin.HandlerFunc,
	registry *errmap.Registry,
) *MattermostController

func (*MattermostController) CreateMattermostChannel

func (mc *MattermostController) CreateMattermostChannel(c *gin.Context)

CreateMattermostChannel

@Summary		Create Mattermost Channel
@Description	Create a new mattermost notification channel
@Tags			mattermost-channel
@Accept			json
@Produce		json
@Security		KeycloakAuth
@Param			MattermostChannel	body		mattermostdto.MattermostNotificationChannelRequest	true	"Mattermost channel to add"
@Success		201			{object}	mattermostdto.MattermostNotificationChannelRequest
@Failure		400			{object}	map[string]string
@Failure		500			{object}	map[string]string
@Router			/notification-channel/mattermost [post]

func (*MattermostController) DeleteMattermostChannel

func (mc *MattermostController) DeleteMattermostChannel(c *gin.Context)

DeleteMattermostChannel

	@Summary		Delete Mattermost Channel
	@Description	Delete a mattermost notification channel
	@Tags			mattermost-channel
	@Security		KeycloakAuth
	@Param			id	path	string	true	"Mattermost channel ID"
	@Success		204	"Deleted successfully"
	@Failure		500	{object}	map[string]string
    @Failure		404 {object}    map[string]string
	@Router			/notification-channel/mattermost/{id} [delete]

func (*MattermostController) ListMattermostChannelsByType

func (mc *MattermostController) ListMattermostChannelsByType(c *gin.Context)

ListMattermostChannelsByType

@Summary		List Mattermost Channels
@Description	List mattermost notification channels by type
@Tags			mattermost-channel
@Produce		json
@Security		KeycloakAuth
@Param			type	query		string	false	"Channel type"
@Success		200		{array}		mattermostdto.MattermostNotificationChannelRequest
@Failure		500		{object}	map[string]string
@Router			/notification-channel/mattermost [get]

func (*MattermostController) SendMattermostTestMessage

func (mc *MattermostController) SendMattermostTestMessage(c *gin.Context)

SendMattermostTestMessage

@Summary		Check mattermost server
@Description	Check if a mattermost server is able to send a test message
@Tags			mattermost-channel
@Accept			json
@Produce		json
@Security		KeycloakAuth
@Success		204 "Mattermost server test message sent successfully"
@Failure		400			{object}	map[string]string
@Router			/notification-channel/mattermost/check [post]

func (*MattermostController) UpdateMattermostChannel

func (mc *MattermostController) UpdateMattermostChannel(c *gin.Context)

UpdateMattermostChannel

@Summary		Update Mattermost Channel
@Description	Update an existing mattermost notification channel
@Tags			mattermost-channel
@Accept			json
@Produce		json
@Security		KeycloakAuth
@Param			id			path		string						true	"Mattermost channel ID"
@Param			MattermostChannel	body		mattermostdto.MattermostNotificationChannelRequest	true	"Mattermost channel to update"
@Success		200			{object}	mattermostdto.MattermostNotificationChannelRequest
@Failure		400			{object}	map[string]string
@Failure		404 		{object}    map[string]string
@Failure		500			{object}	map[string]string
@Router			/notification-channel/mattermost/{id} [put]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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