models

package
v0.0.0-...-0fb2704 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToDB

func AddToDB(phones []string) error

func DeletePhone

func DeletePhone(phone string) error

func InitDB

func InitDB(databaseInfo string) error

func UpdatePhone

func UpdatePhone(p Phone, norm string) error

Types

type Phone

type Phone struct {
	Id    int    `db:"id"`
	Name  string `db:"name"`
	Phone string `db:"phone"`
}

func GetAllData

func GetAllData() ([]Phone, error)

func GetPhone

func GetPhone(phone string) (Phone, error)

Jump to

Keyboard shortcuts

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