feat(alerting): skeleton commit for webhook

This commit is contained in:
bergquist
2016-06-16 08:16:16 +02:00
parent a3b7ea7704
commit efea3bc9cb
5 changed files with 107 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
package models
import "errors"
var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
type SendEmailCommand struct {
To []string
Template string
Data map[string]interface{}
Massive bool
Info string
}
type SendWebhook struct {
Url string
AuthUser string
AuthPassword string
Body string
Method string
}
type SendResetPasswordEmailCommand struct {
User *User
}
type ValidateResetPasswordCodeQuery struct {
Code string
Result *User
}