httpsms-gateway / api /pkg /events /message_send_expired_check_event.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
561 Bytes
package events
import (
"time"
"github.com/NdoleStudio/httpsms/pkg/entities"
"github.com/google/uuid"
)
// EventTypeMessageSendExpiredCheck is emitted to trigger checking if a message is expired
const EventTypeMessageSendExpiredCheck = "message.send.expired.check"
// MessageSendExpiredCheckPayload is the payload of the EventTypeMessageSendExpiredCheck event
type MessageSendExpiredCheckPayload struct {
MessageID uuid.UUID `json:"message_id"`
ScheduledAt time.Time `json:"scheduled_at"`
UserID entities.UserID `json:"user_id"`
}