models

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

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

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(email string) (string, error)

CreateUser func

Types

type User

type User struct {
	Id    bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Email string        `json:"email"`
}

User type

type UserRepository

type UserRepository struct {
	C *mgo.Collection
}

UserRepository type

func (*UserRepository) Create

func (r *UserRepository) Create(user *User) (string, error)

Create user

Jump to

Keyboard shortcuts

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