package
0.0.0-20241211160604-a70b019e050a
Repository: https://github.com/maxzhirnov/go-task-manager.git
Documentation: pkg.go.dev

# Functions

CreateVerificationToken creates a verification token for a user and stores it in the database.
DeleteTask performs a soft delete of a task by marking its status as 'deleted'.
GenerateVerificationToken creates a secure random token for email verification.
GetTask retrieves a single task by its ID.
GetTasks retrieves all active tasks for a specific user.
GetUserByEmail retrieves a user record from the database by email address.
GetUserByID retrieves a user from the database by their unique identifier.
GetUserByResetToken retrieves a user from the database using a password reset token.
No description provided by the author
GetUserStatistics retrieves aggregated task statistics for a specific user.
GetVerificationTokenForUser retrieves the most recent valid verification token for a user.
ResendVerificationToken creates a new verification token after invalidating existing ones.
VerifyEmail processes an email verification token and updates the user's verification status.

# Constants

StatusCompleted represents a task that has been finished.
StatusDeleted represents a soft-deleted task.
StatusInProgress represents a task that is currently being worked on.
StatusPending represents a task that hasn't been started.

# Variables

ValidStatuses defines the list of allowed task statuses for validation.

# Structs

No description provided by the author
No description provided by the author
Task represents a single task in the system.
User represents a registered user in the system.
UserStatistics represents aggregated statistics about a user's tasks.
VerificationToken represents an email verification token.