Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
func GetJWTFromUserPass ¶
func HashPassword ¶
Types ¶
type Security ¶
type Security interface {
CheckUser(r *http.Request) (bool, string, error)
GetProtocolFromDomain(todomain string) (string, error)
VerifyEmailServer(mail sql.ReceivedMessage) error
VerifyEmailSender(mail sql.ReceivedMessage) error
VerifyMessage(mail sql.ReceivedMessage) (bool, error)
}
func NewSecurity ¶
func NewSecurity(db sql.SQL, logger *zap.SugaredLogger) Security
Click to show internal directories.
Click to hide internal directories.