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/services/push_queue_service.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/services/push_queue_service.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/services/push_queue_service.go
-
curl -L -o push_queue_service.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/services/push_queue_service.go
637 Bytes
| package services | |
| import ( | |
| "context" | |
| "time" | |
| "github.com/NdoleStudio/httpsms/pkg/entities" | |
| ) | |
| // PushQueueTask represents a push queue task | |
| type PushQueueTask struct { | |
| Method string | |
| URL string | |
| Body []byte | |
| Headers map[string]string | |
| } | |
| // PushQueueConfig configurations for the push queue | |
| type PushQueueConfig struct { | |
| Name string | |
| UserAPIKey string | |
| UserID entities.UserID | |
| ConsumerEndpoint string | |
| } | |
| // PushQueue is a push queue | |
| type PushQueue interface { | |
| // Enqueue adds a message to the push queue | |
| Enqueue(ctx context.Context, task *PushQueueTask, timeout time.Duration) (string, error) | |
| } | |