Documentation
¶
Index ¶
Constants ¶
View Source
const ( CallInteraction interactionType = "call" TextInteraction interactionType = "text" MeetInteraction interactionType = "meet" )
Variables ¶
This section is empty.
Functions ¶
func CloseDbConnection ¶
func CloseDbConnection() error
func ConnectToDb ¶
func ConnectToDb() (err error)
func GetDbConnection ¶
Types ¶
type Interaction ¶
type Interaction struct { gorm.Model Date time.Time `gorm:"not null"` Type interactionType `gorm:"type:varchar(20);not null"` Details string `gorm:"not null"` PersonID uint `gorm:"not null"` Person Person }
func DeleteInteraction ¶
func DeleteInteraction(id int) (Interaction, error)
func SaveInteraction ¶
func (*Interaction) FormDate ¶
func (self *Interaction) FormDate() string
func (*Interaction) FormattedDate ¶
func (self *Interaction) FormattedDate() string
type Person ¶
type Person struct { gorm.Model Name string `gorm:"not null"` Bio string Interactions []Interaction }
func FetchPeople ¶
func FetchPerson ¶
Click to show internal directories.
Click to hide internal directories.