package
0.0.0-20210825102347-4bac58d596fc
Repository: https://github.com/cermu/go-phonebook-api.git
Documentation: pkg.go.dev
# Functions
InitDB public function used to create a pointer to database connection.
Login public function to authenticate users.
Logout public function to delete auth details and log out a user.
MigrateDB public function used to perform database migrations.
ResetPassword public method used to reset an account's password.
SendResetPasswordLink public method used to reset an account's password.
UpdateAccount public function that is used to make updates to an existing account.
# Variables
No description provided by the author
# Structs
Account struct to store user information
Account has many Contacts, AccountID is the foreign key
*/.
ChangePassword struct to fetch new password from json request.
Contact struct to store contact information.
LoginDetails struct used to fetch login credentials
from json request
*/.
RefreshToken struct to fetch refresh_token from json request.
ResetPassword struct to fetch account's email from json request.
UpdateAccountDetails struct used to fetch account credentials
from json request in order to update an existing account
*/.