user

package
v0.0.0-...-b805d9c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorEmailExists string = "ERROR_EMAIL_EXISTS"
)

Const for error messages

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id             int64
	IdentityNumber string
	FirstName      string
	LastName       string
	Email          string
	DateOfBirth    time.Time
	CreatedAt      time.Time
}

User Domain

func New

func New(in string, fn string, ln string, e string, dob time.Time) (*User, error)

Create a new user instance

type UserRepository

type UserRepository interface {
	Save(u *User) (int64, error)
	GetByEmail(email string) (*User, bool, error)
}

User port interface definition for depedency injection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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