repository

package
v0.0.0-...-43633ff Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersRepo

type UsersRepo struct {
	DB *pg.DB
}

UsersRepo interacts with the users table in the DB

func (*UsersRepo) CountUsersBy

func (up *UsersRepo) CountUsersBy(column, value string) int

CountUsersBy returns number of users that match the column and value provided

func (*UsersRepo) CreateNewUser

func (up *UsersRepo) CreateNewUser(user *model.User) []string

CreateNewUser validates and creates a new user

Jump to

Keyboard shortcuts

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