Documentation ¶
Index ¶
- func EnqueueMail(db *gorm.DB, userID uint64, subj string, text string) error
- func EnqueueVerificationMail(db *gorm.DB, userID uint64, subj string, text string) error
- func Hostname() string
- func MustHaveInfo()
- func MustHaveMonitoring()
- func MustHavePanic()
- func SendSlack(webhook string, title string, body string) error
- func SendSlackDefault(title, body string)
- func SendSlackInfo(title, body string)
- func SendSlackMonitoring(title, body string)
- func Sendmail(key string, sm Message) error
- func SlackPanic(topic string)
- type EmailQueueItem
- type Message
- type Slack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnqueueVerificationMail ¶
func MustHaveInfo ¶
func MustHaveInfo()
func MustHaveMonitoring ¶
func MustHaveMonitoring()
func MustHavePanic ¶
func MustHavePanic()
func SendSlackDefault ¶
func SendSlackDefault(title, body string)
func SendSlackInfo ¶
func SendSlackInfo(title, body string)
func SendSlackMonitoring ¶
func SendSlackMonitoring(title, body string)
func SlackPanic ¶
func SlackPanic(topic string)
Types ¶
type EmailQueueItem ¶
type EmailQueueItem struct { ID uint64 `gorm:"primary_key"` UserID uint64 `gorm:"type:bigint not null REFERENCES users(id)"` UUID string `gorm:"type:varchar(255) not null unique"` EmailText string `gorm:"not null;type:text"` EmailSubject string `gorm:"not null;type:text"` LastError string `gorm:"type:text"` UserScore uint64 SentAt time.Time Sent bool IsVerificationMessage bool AcknowledgedAt time.Time CreatedAt time.Time UpdatedAt time.Time }
Click to show internal directories.
Click to hide internal directories.