repository

package
v0.0.0-...-10e1706 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 3 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 {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(app *config.AppConfig, dbConn *db.Conn) *Repository

func (*Repository) CreateUser

func (r *Repository) CreateUser(u models.User) error

func (*Repository) GetAllUsers

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

func (*Repository) GetUser

func (r *Repository) GetUser(id uint) (models.User, error)

Jump to

Keyboard shortcuts

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