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/events/message_api_sent_event.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/events/message_api_sent_event.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/events/message_api_sent_event.go
-
curl -L -o message_api_sent_event.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/events/message_api_sent_event.go
1.06 kB
| package events | |
| import ( | |
| "time" | |
| "github.com/NdoleStudio/httpsms/pkg/entities" | |
| "github.com/google/uuid" | |
| ) | |
| // EventTypeMessageAPISent is emitted when a new message is sent | |
| const EventTypeMessageAPISent = "message.api.sent" | |
| // MessageAPISentPayload is the payload of the EventTypeMessageSent event | |
| type MessageAPISentPayload struct { | |
| MessageID uuid.UUID `json:"message_id"` | |
| UserID entities.UserID `json:"user_id"` | |
| Owner string `json:"owner"` | |
| RequestID *string `json:"request_id"` | |
| MaxSendAttempts uint `json:"max_send_attempts"` | |
| Contact string `json:"contact"` | |
| ScheduledSendTime *time.Time `json:"scheduled_send_time"` | |
| ExactSendTime bool `json:"exact_send_time"` | |
| RequestReceivedAt time.Time `json:"request_received_at"` | |
| Content string `json:"content"` | |
| Attachments []string `json:"attachments"` | |
| Encrypted bool `json:"encrypted"` | |
| SIM entities.SIM `json:"sim"` | |
| } | |