Documentation
¶
Index ¶
- Constants
- func AllNotesByUserID(uid uint32, db *sql.DB) ([]data.Note, error)
- func DeleteNoteByID(note_id uint32, db *sql.DB) error
- func HashPassword(pwd string) (string, error)
- func InsertNewNote(uid uint32, title, content string, db *sql.DB) (uint32, error)
- func IsUsernameValid(un string) bool
- func NoteByID(id uint32, db *sql.DB) (data.Note, error)
- func UpdateNoteByID(title, contents string, note_id uint32, db *sql.DB) error
- func UserExists(username string, db *sql.DB) (bool, error)
- func UserFromUsername(username string, db *sql.DB) (data.User, error)
- func UserInsert(user data.User, db *sql.DB) error
- func VerifyPassword(hash string, pwd string) bool
Constants ¶
View Source
const BCRYPT_COST = 14
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
func InsertNewNote ¶
func IsUsernameValid ¶
func VerifyPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.