package
0.0.0-20190816125730-195a7bdea535
Repository: https://github.com/l3njo/dropnote-api.git
Documentation: pkg.go.dev

# Functions

DeleteNote deletes a note.
DeleteUser removes a user from the database.
Execute runs c.Action against user.
GetNote returns a single note, if present, that matches provided criteria and has visible == true.
GetNotes returns an array of all notes.
GetNotesFor returns an array of notes created by a specific user.
GetUser fetches the user from db.
GetUserByMail fetches the user from db.
Login authorizes a user and assigns JWT token.
NewCode returns a pointer to a new Code variable.
ToggleNote updates a note.
UpdateNote updates a note.
UpdatePassword hashes and updates provided password.
UpdateUser updates a user in the db.

# Variables

Actions holds constants for different token types.

# Structs

Base contains common columns for all tables.
Code represents a one time voucher provided to user in certain circumstances.
Note struct represents a note.
Token is a JWT claims struct.
User is a struct to rep user.