repositories

package
v0.0.0-...-e1bd9c8 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 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 UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

general struct

func GetUserRepositoryInstance

func GetUserRepositoryInstance() *UserRepository

singleton instance getter

func (*UserRepository) Create

func (ur *UserRepository) Create(user *models.User) *models.User

func (*UserRepository) GetAll

func (ur *UserRepository) GetAll() []*models.User

func (*UserRepository) GetById

func (ur *UserRepository) GetById(id string) *models.User

func (*UserRepository) GetByUsername

func (ur *UserRepository) GetByUsername(username string) *models.User

Repository methods

Jump to

Keyboard shortcuts

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