httpsms-gateway / api /pkg /repositories /repository.go
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
Raw History Blame Contribute Delete
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
)