package
0.0.0-20241007120623-b946689a3c72
Repository: https://github.com/znotify/server.git
Documentation: pkg.go.dev

# Functions

Send godoc @Summary Send notification @Id sendMessage @Tags Message @Description Send notification to user_id @Param user_secret path string true "Secret of user" @Param title formData string false "Message Title" default(Notification) @Param content formData string true "Message Content" @Param long formData string false "Long Message Content (optional)" @Param priority formData enum.Priority false "The priority of message" default(normal) @Produce json @Success 200 {object} common.Response[models.Message] @Failure 400 {object} common.BadRequestResponse @Failure 401 {object} common.UnauthorizedResponse @Router /{user_secret}/send [post].
Short godoc @Summary Send notification @Id sendMessageLite @Tags Message @Description Send notification to user_id @Param user_secret path string true "Secret of user" @Param string body string true "Message Content" @Accept plain @Produce json @Success 200 {object} common.Response[models.Message] @Failure 400 {object} common.BadRequestResponse @Failure 401 {object} common.UnauthorizedResponse @Router /{user_secret} [post].
WebPush @Summary Endpoint for webpush info check @Id webpush @Tags Push @Description Check if this znotify instance support webpush and get public key @Produce json @Success 200 {object} common.Response[info] @Router /webpush [get].