users

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	Conn *sql.DB
}

Repository struct for db connection

func (*Repository) Close

func (repository *Repository) Close()

Close the DB connection

func (*Repository) GetUser

func (repository *Repository) GetUser(username string) (*models.User, error)

GetUser is for getting a user by username

func (*Repository) SaveUser

func (repository *Repository) SaveUser(user *models.User) error

SaveUser is for saving a new user

type RepositoryInterface

type RepositoryInterface interface {
}

RepositoryInterface interface for functions for user repository

Jump to

Keyboard shortcuts

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