repository

package
v0.0.0-...-0cd45ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseRepo

type DatabaseRepo interface {
	// User model functions
	AllUsers() ([]models.User, error)
	GetUserByID(userID int64) (models.User, error)
	GetUserByEmail(email string) (models.User, error)
	InsertUser(user models.User) (int64, error)
	UpdateUser(user models.User) error
	UpdatePasswordForUser(user models.User, newHash string) error
	Authenticate(email string, testPassword string) (int64, string, error)
}

DatabaseRepo interface which specifies set of operations for communicating with the database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL