entities

package
v0.0.0-...-ff4c41b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailAddress

type EmailAddress string

func (EmailAddress) IsValid

func (e EmailAddress) IsValid() bool

type Gender

type Gender string
const (
	Male   Gender = "MALE"
	Female Gender = "FEMALE"
)

type Household

type Household struct {
	ID            string
	Name          string
	HouseholdHead Person
	PictureUrl    string
	Members       []Person
}

type Person

type Person struct {
	ID                string
	FirstName         string
	MiddleName        string
	LastName          string
	ProfilePictureUrl string
	Address           string
	PhoneNumber       PhoneNumber
	EmailAddress      EmailAddress
	MaritalStatus     string
	Birthday          *YearMonthDay
	Gender            Gender
}

func (*Person) Validate

func (p *Person) Validate() error

type PhoneNumber

type PhoneNumber string

func (PhoneNumber) IsValid

func (p PhoneNumber) IsValid() bool

type YearMonthDay

type YearMonthDay struct {
	Year  int
	Month int
	Day   int
}

func (YearMonthDay) IsValid

func (y YearMonthDay) IsValid() bool

Jump to

Keyboard shortcuts

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