usersrv

package
v0.0.0-...-fc44d3c Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(db *database.Db, gameservice *gamesrv.Service) *Service

func (Service) GetUserById

func (srv Service) GetUserById(userid bson.ObjectId) (*models.User, error)

func (Service) GetUserPlanetsById

func (srv Service) GetUserPlanetsById(userid bson.ObjectId) ([]*models.Planet, error)

func (Service) Login

func (srv Service) Login(email, password string) (*string, *models.User, error)

func (Service) Register

func (srv Service) Register(name, password, email string) (*models.User, error)

Jump to

Keyboard shortcuts

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