userrepo

package
v0.0.0-...-cbb84de Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 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 Repo

type Repo interface {
	Create(user *models.User) (*models.User, error)
	Read() ([]*models.User, error)
	ReadByID(id int) (*models.User, error)
	ReadByName(name string) ([]*models.User, error)
	Update(user *models.User) (*models.User, error)
	Delete(user *models.User) (*models.User, error)
}

func NewUserRepo

func NewUserRepo(db *gorm.DB) Repo

Jump to

Keyboard shortcuts

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