package
0.0.0-20170529101659-ae7a0979dce3
Repository: https://github.com/thearavind/go-gin-crud.git
Documentation: pkg.go.dev

# Functions

FetchUser - Gets the user ID from auth token and returns that user form the DB.
LoginHandler - Handler function for the login route.
RegistrationHandler - Encrypts the new users password and stores user details in the DB.
TokenValidator - gin middleware function to validate the jwt tokens in the incoming requests.

# Variables

ORM - Global ORM object for the handler package.

# Structs

LoginRequest - Login JSON request format.
RegistrationRequest - Registration request parameter format.