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/emails/user_email_factory.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 803 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/emails/user_email_factory.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/emails/user_email_factory.go
-
curl -L -o user_email_factory.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/emails/user_email_factory.go
803 Bytes
| package emails | |
| import ( | |
| "time" | |
| "github.com/NdoleStudio/httpsms/pkg/entities" | |
| ) | |
| // UserEmailFactory generates emails to a user | |
| type UserEmailFactory interface { | |
| // PhoneDead sends an emails when the user's phone is not sending heartbeats | |
| PhoneDead(user *entities.User, lastHeartbeatTimestamp time.Time, owner string) (*Email, error) | |
| // UsageLimitExceeded sends an email when the user's limit is exceeded | |
| UsageLimitExceeded(user *entities.User, usage *entities.BillingUsage) (*Email, error) | |
| // UsageLimitAlert sends an email when a user is approaching the limit | |
| UsageLimitAlert(user *entities.User, usage *entities.BillingUsage) (*Email, error) | |
| // APIKeyRotated sends an email when the API key is rotated | |
| APIKeyRotated(email string, timestamp time.Time, timezone string) (*Email, error) | |
| } | |