models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Person

type Person struct {
	FirstName         string
	LastName          string
	Domain            string
	Email             string
	Username          string
	Password          string
	BirthDate         string
	Gender            string
	Street            string
	Country           string
	PhoneNumber       string
	CreditCard        string
	HomePage          string
	Company           string
	Job               string
	SecurityQuestions []string
}

func (*Person) FromMap

func (p *Person) FromMap(m map[string]interface{}) error

func (*Person) ToMap

func (p *Person) ToMap() (map[string]interface{}, error)

func (*Person) ToReduced

func (p *Person) ToReduced() PersonReduced

func (*Person) ToString

func (p *Person) ToString() string

type PersonReduced

type PersonReduced struct {
	FirstName string
	LastName  string
	Email     string
	Username  string
	Password  string
}

Jump to

Keyboard shortcuts

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