domain

package
v0.0.0-...-9044698 Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Copyright 2015 Home24 AG. All rights reserved. Proprietary license.

Package domain business entities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair(u *User) (string, string)

func HashPassword

func HashPassword(password string) string

Types

type User

type User struct {
	Id   string   `json:"id"`
	Pass string   `json:"pass"`
	Keys []string `json:"keys"`
}

User user struct

func NewUser

func NewUser() *User

NewUser creates new user

func (*User) AddKey

func (u *User) AddKey(key string)

func (*User) Clone

func (u *User) Clone() *User

func (*User) IsLogin

func (u *User) IsLogin() bool

IsLogin is user logged in

Jump to

Keyboard shortcuts

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