database

package
v0.0.0-...-a771f44 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfContactExists

func CheckIfContactExists(id int) bool

func DeleteContactByID

func DeleteContactByID(id int) (*int, error)

func GetAllContacts

func GetAllContacts() ([]*model.Contact, error)

func InitDB

func InitDB(user, password, dbname string)

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.

Jump to

Keyboard shortcuts

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