mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
38 lines
745 B
Go
38 lines
745 B
Go
package models
|
|
|
|
import "errors"
|
|
|
|
var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
|
|
var ErrSmtpNotEnabled = errors.New("SMTP not configured, check your grafana.ini config file's [smtp] section.")
|
|
|
|
type SendEmailCommand struct {
|
|
To []string
|
|
Template string
|
|
Subject string
|
|
Data map[string]interface{}
|
|
Info string
|
|
EmbededFiles []string
|
|
}
|
|
|
|
type SendEmailCommandSync struct {
|
|
SendEmailCommand
|
|
}
|
|
|
|
type SendWebhookSync struct {
|
|
Url string
|
|
User string
|
|
Password string
|
|
Body string
|
|
HttpMethod string
|
|
HttpHeader map[string]string
|
|
}
|
|
|
|
type SendResetPasswordEmailCommand struct {
|
|
User *User
|
|
}
|
|
|
|
type ValidateResetPasswordCodeQuery struct {
|
|
Code string
|
|
Result *User
|
|
}
|