Documentation
¶
Index ¶
- Variables
- func Destroy(response *goyave.Response, request *goyave.Request)
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(n int) (string, error)
- func LoginAuth(username, password string) smtp.Auth
- func SendEmail(address string, subject string, body string)
- func Show(response *goyave.Response, request *goyave.Request)
- func Store(response *goyave.Response, request *goyave.Request)
- func Update(response *goyave.Response, request *goyave.Request)
- func Verify(response *goyave.Response, request *goyave.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Login validation.RuleSet = validation.RuleSet{
"email": {"required", "string"},
"password": {"required", "string"},
}
)
View Source
var (
Register validation.RuleSet = validation.RuleSet{
"email": {"required", "string"},
"password": {"required", "string"},
"first_name": {"required", "string"},
"last_name": {"required", "string"},
}
)
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.