Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
DB is a reference to the parent app's gorm DB.
Functions ¶
Types ¶
type Contact ¶
type Contact struct { ID int `json:"id"` Secret string `json:"secret" gorm:"unique"` // their lazy insecure login token FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` SMS string `json:"sms"` LastSeen time.Time `json:"lastSeen"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` }
Contact is an individual contact in the address book.
func GetBySecret ¶
GetBySecret queries a contact by their secret.
Click to show internal directories.
Click to hide internal directories.