postgres

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository() (store.DatabaseRepository, error)

Types

type Repository

type Repository struct {
	DB *sql.DB
}

func (*Repository) GetAllUsers

func (repo *Repository) GetAllUsers() ([]*models.User, error)

func (*Repository) GetUserByEmail

func (repo *Repository) GetUserByEmail(email string) (*models.User, error)

func (*Repository) InsertUser

func (repo *Repository) InsertUser(user *models.User) error

func (*Repository) UpdateUserQRSecret

func (repo *Repository) UpdateUserQRSecret(email, secret string) error

Jump to

Keyboard shortcuts

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