user

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	StreetNumber string `json:"street_number"`
	StreetName   string `json:"street_name"`
	AddressTwo   string `json:"address_two"`
	City         string `json:"city"`
	State        string `json:"state"`
	ZipCode      string `json:"zipcode"`
}

type CheckIn

type CheckIn struct {
	Date       string   `json:"date"`
	Time       string   `json:"time"`
	UUID       string   `json:"uuid"`
	Additional []string `json:"additional"`
}

type DateOfBirth

type DateOfBirth struct {
	Month string `json:"month"`
	Day   int    `json:"day"`
	Year  int    `json:"year"`
}

type Person

type Person struct {
	FirstName    string      `json:"first_name"`
	LastName     string      `json:"last_name"`
	MiddleName   string      `json:"middle_name"`
	Address      Address     `json:"address"`
	DateOfBirth  DateOfBirth `json:"date_of_birth"`
	Age          int         `json:"age"`
	Sex          string      `json:"sex"`
	Height       string      `json:"height"`
	EyeColor     string      `json:"eye_color"`
	PhoneNumber  string      `json:"phone_number"`
	EmailAddress string      `json:"email_address"`
	UUID         string      `json:"uuid"`
}

type User

type User struct {
	Verified            bool      `json:"verified"`
	Username            string    `json:"username"`
	NameString          string    `json:"name_string"`
	SearchString        string    `json:"search_string"`
	UUID                string    `json:"uuid"`
	ULID                string    `json:"ulid"`
	Barcodes            []string  `json:"barcodes"`
	EmailAddress        string    `json:"email_address"`
	PhoneNumber         string    `json:"phone_number"`
	Identity            Person    `json:"identity"`
	AuthorizedAliases   []string  `json:"authorized_aliases"`
	FamilySize          int       `json:"family_size"`
	FamilyMembers       []Person  `json:"family_members"`
	Spouse              Person    `json:"spouse"`
	Children            []Person  `json:"children"`
	CreatedDate         string    `json:"created_date"`
	CreatedTime         string    `json:"created_time"`
	CheckIns            []CheckIn `json:"check_ins"`
	FailedCheckIns      []CheckIn `json:"failed_check_ins"`
	TotalGuestsAdmitted int       `json:"total_guests_admitted"`
	TimeRemaining       int       `json:"time_remaining"`
	AllowedToCheckIn    bool      `json:"allowed_to_checkin"`
	Language            string    `json:"language"`
	SimilarUsers        []User    `json:"similar_users"`
	ECB                 string    `json:"ecb"`
}

func New

func New(s *server.Server) (new_user User)

func (*User) GetFamilyName added in v1.0.22

func (user *User) GetFamilyName() string

func (*User) GetLastName added in v1.0.31

func (user *User) GetLastName() string

Jump to

Keyboard shortcuts

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