Spaces:
Paused
Paused
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 Download api/pkg/entities/phone_notification.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/entities/phone_notification.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/entities/phone_notification.go
-
curl -L -o phone_notification.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/entities/phone_notification.go
1.04 kB
| package entities | |
| import ( | |
| "time" | |
| "github.com/google/uuid" | |
| ) | |
| const ( | |
| // PhoneNotificationStatusPending is the status when a notification is scheduled to be sent | |
| PhoneNotificationStatusPending = "pending" | |
| // PhoneNotificationStatusSent is the status when a notification has been sent | |
| PhoneNotificationStatusSent = "sent" | |
| // PhoneNotificationStatusFailed is the status when a notification could not be sent. | |
| PhoneNotificationStatusFailed = "failed" | |
| ) | |
| // PhoneNotificationStatus is the status of a phone notification | |
| type PhoneNotificationStatus string | |
| // PhoneNotification represents a scheduled wake-up notification for a phone gateway. | |
| type PhoneNotification struct { | |
| ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;"` | |
| MessageID uuid.UUID `json:"message_id"` | |
| UserID UserID `json:"user_id"` | |
| PhoneID uuid.UUID `json:"phone_id"` | |
| Status string `json:"status"` | |
| ScheduledAt time.Time `json:"scheduled_at"` | |
| CreatedAt time.Time `json:"created_at"` | |
| UpdatedAt time.Time `json:"updated_at"` | |
| } | |