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/webhook.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 992 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/entities/webhook.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/entities/webhook.go
-
curl -L -o webhook.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/entities/webhook.go
992 Bytes
| package entities | |
| import ( | |
| "time" | |
| "github.com/google/uuid" | |
| "github.com/lib/pq" | |
| ) | |
| // Webhook stores the webhooks of a user | |
| type Webhook struct { | |
| ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"` | |
| UserID UserID `json:"user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"` | |
| URL string `json:"url" example:"https://example.com"` | |
| SigningKey string `json:"signing_key" example:"DGW8NwQp7mxKaSZ72Xq9v67SLqSbWQvckzzmK8D6rvd7NywSEkdMJtuxKyEkYnCY"` | |
| PhoneNumbers pq.StringArray `json:"phone_numbers" example:"+18005550199,+18005550100" gorm:"type:text[]" swaggertype:"array,string"` | |
| Events pq.StringArray `json:"events" example:"message.phone.received" gorm:"type:text[]" swaggertype:"array,string"` | |
| CreatedAt time.Time `json:"created_at" example:"2022-06-05T14:26:02.302718+03:00"` | |
| UpdatedAt time.Time `json:"updated_at" example:"2022-06-05T14:26:10.303278+03:00"` | |
| } | |