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]