Documentation ¶
Index ¶
- func CheckIfFollowed(who string, whom string) bool
- func CheckPasswordHash(password, hash string) bool
- func CheckUsernameExists(username string) bool
- func GetConnString() string
- func GetCurrentTime() string
- func GetDB() *gorm.DB
- func GetGravatarHash(g_email string) string
- func GetImageFromID(id int) string
- func GetUserID(username string) int
- func GetUserName(request *http.Request) (userName string)
- func GetUsernameFromID(id int) string
- func HashPassword(password string) string
- func InitDB() *gorm.DB
- func IsEmpty(data string) bool
- func PostsAmount(posts []Post) bool
- func UserIsValid(uName, pwd string) bool
- func ValidUser(username string, psw string) bool
- type Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfFollowed ¶
func CheckPasswordHash ¶
func CheckUsernameExists ¶
func GetConnString ¶
func GetConnString() string
func GetCurrentTime ¶
func GetCurrentTime() string
func GetGravatarHash ¶
func GetImageFromID ¶
func GetUserName ¶
func GetUsernameFromID ¶
func HashPassword ¶
func PostsAmount ¶
func UserIsValid ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.