repositories

package
v0.0.0-...-5f9580c Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: MIT Imports: 4 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 {
	*gorm.DB
}

func (*Repository) Find

func (r *Repository) Find(model interface{}, filter, value string) bool

func (*Repository) Save

func (r *Repository) Save(model interface{}) bool

type UserRepository

type UserRepository struct {
	*Repository
}

func NewUserRepo

func NewUserRepo(db *gorm.DB) *UserRepository

func (*UserRepository) FindByCredentials

func (ur *UserRepository) FindByCredentials(user *models.User) bool

Jump to

Keyboard shortcuts

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