Documentation
¶
Index ¶
- func Conn() *sql.DB
- func Count(db *sql.DB, query string, args ...any) (int, error)
- func DeleteAccessToken(token string)
- func GenerateAccessToken(userId int64) (string, error)
- func InsertUser(user User) (int64, error)
- func InsertUserWithDetails(user User) (int64, error)
- func IsEmailExists(email string) (bool, error)
- func Login(email string, password string) (int64, error)
- func UpdateAccessToken(id int64) error
- func UpdateUser(user User) (int64, error)
- func VerifyAccessToken(token string) (int64, int64, error)
- type AccessToken
- type Number
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAccessToken ¶
func DeleteAccessToken(token string)
func GenerateAccessToken ¶
func InsertUser ¶
func InsertUserWithDetails ¶
func IsEmailExists ¶
func UpdateAccessToken ¶
func UpdateUser ¶
Types ¶
type AccessToken ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Creating a generic type
Click to show internal directories.
Click to hide internal directories.