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/heartbeat.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/entities/heartbeat.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/entities/heartbeat.go
-
curl -L -o heartbeat.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/entities/heartbeat.go
760 Bytes
| package entities | |
| import ( | |
| "time" | |
| "github.com/google/uuid" | |
| ) | |
| // Heartbeat represents is a pulse from an active phone | |
| type Heartbeat struct { | |
| ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;" bson:"_id" example:"32343a19-da5e-4b1b-a767-3298a73703cb"` | |
| Owner string `json:"owner" gorm:"index:idx_heartbeats_owner_timestamp" bson:"owner" example:"+18005550199"` | |
| Version string `json:"version" bson:"version" example:"344c10f"` | |
| Charging bool `json:"charging" bson:"charging" example:"true"` | |
| UserID UserID `json:"user_id" bson:"user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"` | |
| Timestamp time.Time `json:"timestamp" gorm:"index:idx_heartbeats_owner_timestamp" bson:"timestamp" example:"2022-06-05T14:26:01.520828+03:00"` | |
| } | |