httpsms-gateway / api /pkg /events /message_send_retry_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 Contribute Delete
735 Bytes
package events
import (
"time"
"github.com/NdoleStudio/httpsms/pkg/entities"
"github.com/google/uuid"
)
// EventTypeMessageSendRetry is emitted when the phone a message expires and is being retried
const EventTypeMessageSendRetry = "message.send.retry"
// MessageSendRetryPayload is the payload of the EventTypeMessageSendRetry event
type MessageSendRetryPayload struct {
MessageID uuid.UUID `json:"message_id"`
Owner string `json:"owner"`
Contact string `json:"contact"`
Encrypted bool `json:"encrypted"`
UserID entities.UserID `json:"user_id"`
Timestamp time.Time `json:"timestamp"`
Content string `json:"content"`
SIM entities.SIM `json:"sim"`
}