Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserNotFound ResponseErrorCode = "user_not_found" UserExist = "user_exist" Success = "success" SendNotifError = "send_notif_error" AddTokenError = "add_token_error" )
Variables ¶
This section is empty.
Functions ¶
func Notification ¶
func Notification(w http.ResponseWriter, r *http.Request)
Types ¶
type ActionNotif ¶
type ActionNotif string
const ( SendAction ActionNotif = "send_action" AddTokenAction = "add_token" )
type Payload ¶
type Payload struct {
Action ActionNotif `json:"action"`
Email string `json:"email"`
Message string `json:"message"`
Tokens []string `json:"tokens"`
}
type Response ¶
type Response struct {
Errcode ResponseErrorCode `json:"errcode"`
Message string `json:"message"`
}
func (Response) ReturnData ¶
type ResponseErrorCode ¶
type ResponseErrorCode string
Click to show internal directories.
Click to hide internal directories.