httpsms-gateway / api /pkg /events /webhook_event_failed_event.go
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca
Raw History Blame
911 Bytes
package events
import (
"github.com/NdoleStudio/httpsms/pkg/entities"
"github.com/google/uuid"
)
// EventTypeWebhookSendFailed is emitted when we can't send a webhook event
const EventTypeWebhookSendFailed = "webhook.send.failed"
// WebhookSendFailedPayload is the payload of the EventTypeWebhookSendFailed event
type WebhookSendFailedPayload struct {
WebhookID uuid.UUID `json:"webhook_id"`
WebhookURL string `json:"webhook_url"`
Owner string `json:"owner"`
UserID entities.UserID `json:"user_id"`
EventID string `json:"event_id"`
EventType string `json:"event_type"`
EventPayload string `json:"event_payload"`
HTTPResponseStatusCode *int `json:"http_response_status_code"`
ErrorMessage string `json:"error_message"`
}