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/repositories/repository.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/repositories/repository.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/repositories/repository.go
-
curl -L -o repository.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/repositories/repository.go
529 Bytes
| package repositories | |
| import ( | |
| "time" | |
| "github.com/NdoleStudio/stacktrace" | |
| ) | |
| // IndexParams parameters for indexing a database table | |
| type IndexParams struct { | |
| Skip int `json:"skip"` | |
| SortBy string `json:"sort"` | |
| SortDescending bool `json:"sort_descending"` | |
| Query string `json:"query"` | |
| Limit int `json:"take"` | |
| } | |
| const ( | |
| // ErrCodeNotFound is thrown when an entity does not exist in storage | |
| ErrCodeNotFound = stacktrace.ErrorCode(1000) | |
| dbOperationDuration = 5 * time.Second | |
| ) | |