template-monorepo/internal/model/notification/domain/enum/status.go

17 lines
413 B
Go

package enum
// NotifyStatus is the delivery lifecycle state persisted in MongoDB.
type NotifyStatus string
const (
NotifyStatusPending NotifyStatus = "pending"
NotifyStatusSent NotifyStatus = "sent"
NotifyStatusFailed NotifyStatus = "failed"
NotifyStatusRetrying NotifyStatus = "retrying"
NotifyStatusDropped NotifyStatus = "dropped"
)
func (s NotifyStatus) String() string {
return string(s)
}