Documentation ¶
Index ¶
- func CheckIfContactExists(id int) bool
- func DeleteContactByID(id int) (*int, error)
- func GetAllContacts() ([]*model.Contact, error)
- func InitDB(user, password, dbname string)
- func InsertContact(input model.NewContact) (*model.Contact, error)
- func UpdateContact(input model.UpdateContact) (*model.Contact, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfContactExists ¶
func DeleteContactByID ¶
func GetAllContacts ¶
func InsertContact ¶
func InsertContact(input model.NewContact) (*model.Contact, error)
func UpdateContact ¶
func UpdateContact(input model.UpdateContact) (*model.Contact, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.