contact

package
v0.0.0-...-9a81cb1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package contact contains all structures and tools related to contacts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUUID

func GenerateUUID() string

Types

type Address

type Address struct {
	// The type of the address : personal, professional...
	Type string

	// Next fields are precisions for the address
	Street  string
	City    string
	State   string
	Zip     string
	Country string
}

Address represents a physical address for a contact

type Contact

type Contact struct {
	// The Unique User identifier of the user (based on UUIDv4)
	UUID string
	// The full name of the contact
	Name string
	// One or more email addresses
	Emails []TypeValue
	// One or more physical addresses
	Addresses []Address
	// One or more phone numbers
	Phones []TypeValue
	// One or more Internet links
	WebLinks []string
	// One or more accounts on Internet
	Accounts []TypeValue
	// One or more associated contacts
	AssociatedContacts []int
	// Some texts that user can add to the contact
	Notes []string
}

Contacts represents a contact and all its data in the address book

func (Contact) String

func (contact Contact) String() string

Strings displays the contact as a readable string

type Event

type Event struct {
	// The type of the event : birthday...
	Type string
	// The time when this event happens
	Time time.Time
}

type TypeValue

type TypeValue struct {
	// The type of the field : personal, professional...
	Type string
	// The value of this piece of information
	Value string
}

Jump to

Keyboard shortcuts

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