handlers

package
v0.0.0-...-40ea64e Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalHandler

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

InternalHandler is the handler for internal user notifications

func NewNotificationHandler

func NewNotificationHandler(
	distQueue queue.Writer,
	backup client.BackupMessageSender,
	channelController *controller.ChannelController,
	messageController *controller.MessageController,
	userController *controller.UserController) *InternalHandler

NewNotificationHandler creates a new NotificationHandler

func (*InternalHandler) PostNotification

func (ih *InternalHandler) PostNotification(c *gin.Context)

PostNotification posts a notification to a channel @Summary Post a notification to a channel @Description post a notification to a channel given an event id @Tags notifications @Accept json @Produce json @Param id path string true "Event ID" @Param request body v1.ChannelNotificationRequest true "The request body." @Success 200 {object} v1.ChannelNotificationResponse @Failure 400 {object} httputil.HTTPError @Router /api/v1/internal/notifications/{id} [post]

Jump to

Keyboard shortcuts

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