user

package
v0.0.0-...-033632b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndPassword

func CompareHashAndPassword(hashedPassword []byte, password string) error

func DeleteUser

func DeleteUser(userData database.UserData, userId string, password string) int

func RegisterUser

func RegisterUser(userData database.UserData, userId string, password string) int

Types

type User

type User interface {
	GetUserId() string
	GetPasswordHash() []byte
}

func GetUser

func GetUser(userId string, passwordHash []byte) User

func NewUser

func NewUser(userId string, password string) (User, error)

type UserS

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

func (*UserS) GetPasswordHash

func (u *UserS) GetPasswordHash() []byte

func (*UserS) GetUserId

func (u *UserS) GetUserId() string

Jump to

Keyboard shortcuts

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