Documentation
¶
Index ¶
- Constants
- func Authenticate(db *sql.DB, email, password string) (*models.User, error)
- func CheckPassword(password, hash string) bool
- func DeleteSession(db *sql.DB, token string) error
- func GetUserID(db *sql.DB, token string) (int, error)
- func HashPassword(password string) (string, error)
- type Session
Constants ¶
View Source
const ( RoleViewer = 1 RoleEditor = 2 RoleManager = 3 RoleAdmin = 4 )
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func HashPassword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.