mattermostcontroller

package
v0.11.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 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,
	service port.NotificationChannelService, mattermostChannelService port.MattermostChannelService,
	auth gin.HandlerFunc,
) *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		request.MattermostNotificationChannelRequest	true	"Mattermost channel to add"
@Success		201			{object}	request.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}		request.MattermostNotificationChannelRequest
@Failure		500		{object}	map[string]string
@Router			/notification-channel/mattermost [get]

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		request.MattermostNotificationChannelRequest	true	"Mattermost channel to update"
@Success		200			{object}	request.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]

Jump to

Keyboard shortcuts

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