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/message_send_schedule_repository.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/repositories/message_send_schedule_repository.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/repositories/message_send_schedule_repository.go
-
curl -L -o message_send_schedule_repository.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/repositories/message_send_schedule_repository.go
1.27 kB
| package repositories | |
| import ( | |
| "context" | |
| "github.com/NdoleStudio/httpsms/pkg/entities" | |
| "github.com/google/uuid" | |
| ) | |
| // MessageSendScheduleRepository loads and persists entities.MessageSendSchedule. | |
| type MessageSendScheduleRepository interface { | |
| // Store persists a new message send schedule. | |
| Store(ctx context.Context, schedule *entities.MessageSendSchedule) error | |
| // Update persists changes to an existing message send schedule. | |
| Update(ctx context.Context, schedule *entities.MessageSendSchedule) error | |
| // Load returns a message send schedule by user ID and schedule ID. | |
| Load(ctx context.Context, userID entities.UserID, scheduleID uuid.UUID) (*entities.MessageSendSchedule, error) | |
| // Index returns all message send schedules owned by a user. | |
| Index(ctx context.Context, userID entities.UserID) ([]entities.MessageSendSchedule, error) | |
| // Delete removes a message send schedule owned by a user. | |
| Delete(ctx context.Context, userID entities.UserID, scheduleID uuid.UUID) error | |
| // DeleteAllForUser removes all message send schedules owned by a user. | |
| DeleteAllForUser(ctx context.Context, userID entities.UserID) error | |
| // CountByUser returns the number of schedules owned by a user. | |
| CountByUser(ctx context.Context, userID entities.UserID) (int, error) | |
| } | |