repositories

package
v0.0.0-...-9d52f33 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 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 UserRepository

type UserRepository interface {
	User(id int) models.User
	Users() []models.User
	Create(u models.User) models.User
	Update(id int, u models.User) models.User
	Delete(id int) bool
}

func NewUserRepo

func NewUserRepo(DB *gorm.DB) UserRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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