domain

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package name : domain File name : domain.go Author : Antony Injila Description :

  • Host Portfolio entiry strunctures such as a User and a Project
  • User types have the GenerateHashPassord and CheckPasswordHarsh methods

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	Id       string `json:"id"`
	Title    string `json:"title"`
	Body     string `json:"body"`
	UserID   string `json:"user_id"`
	Rate     int    `json:"rate"`
	CreateAt int64  `json:"created_at"`
}

type User

type User struct {
	Id        string              `json:"id"`
	FirstName string              `json:"firstname"`
	LastName  string              `json:"lastname"`
	Email     string              `json:"email"`
	Password  string              `json:"password"`
	Projects  map[string]*Project `json:"projects"`
}

func (User) CheckPasswordHarsh

func (u User) CheckPasswordHarsh(password string) bool

func (User) GenerateHashPassord added in v1.0.0

func (u User) GenerateHashPassord() (string, error)

Jump to

Keyboard shortcuts

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