data

package
v0.0.0-...-bff681c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 3 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
}

func NewUserRepository

func NewUserRepository(mgc *mgo.Collection) *UserRepository

func (*UserRepository) Create

func (r *UserRepository) Create(user *models.User) error

func (*UserRepository) Delete

func (r *UserRepository) Delete(id string) error

func (*UserRepository) GetAll

func (r *UserRepository) GetAll() (users []models.User)

Jump to

Keyboard shortcuts

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