Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
DB is the accessible database.
Functions ¶
Types ¶
type Contact ¶
type Contact struct { gorm.Model Name string `json:"name"` Email string `json:"email"` Number string `json:"number,omitempty"` Slug string `json:"slug"` Notes []Note `json:"notes,omitempty"` Lead bool `json:"lead,omitempty"` Advocate bool `json:"advocate,omitempty"` Customer bool `json:"customer,omitempty"` Subscriber bool `json:"subscriber,omitempty"` Other string `json:"other"` Contacted bool `json:"contacted"` }
Contact is the main person.
func QueryContacts ¶
QueryContacts returns all of the contacts in the database.
func (*Contact) SearchMultiple ¶
SearchMultiple returns multiple contacts that match c.
type Email ¶
type Email struct { gorm.Model To string `json:"to"` Bcc string `json:"bcc,omitempty"` Subject string `json:"subject"` Body string `json:"body"` }
Email entry in the database.
type Note ¶
type Note struct { gorm.Model ContactID uint Text string `json:"text"` Task bool `json:"task,omitempty"` Due time.Time `json:"due_date,omitempty"` Call bool `json:"call,omitempty"` Email bool `json:"email,omitempty"` Event time.Time `json:"event,omitempty"` }
Note has information about a contact.
Click to show internal directories.
Click to hide internal directories.