services

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password string, hash string) bool

func HashPassword

func HashPassword(password string) (string, error)

Types

type UserService

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

func GetUserServiceInstance

func GetUserServiceInstance() *UserService

func (*UserService) Create

func (us *UserService) Create(user *models.User) *models.User

func (*UserService) GetAll

func (us *UserService) GetAll() []*models.User

func (*UserService) GetById

func (us *UserService) GetById(id string) *models.User

func (*UserService) GetByUsername

func (us *UserService) GetByUsername(username string) *models.User

Service methods

Jump to

Keyboard shortcuts

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