models

package
v0.0.0-...-ded5da9 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPhoneNumber

func AddPhoneNumber(number string) error

func Close

func Close()

func DeletePhoneNumber

func DeletePhoneNumber(id int) error

func Init

func Init() error

func Seed

func Seed() error

func UpdatePhoneNumber

func UpdatePhoneNumber(p PhoneNumber) error

Types

type PhoneNumber

type PhoneNumber struct {
	ID     int
	Number string
}

func GetPhoneNumbers

func GetPhoneNumbers() ([]PhoneNumber, error)

Jump to

Keyboard shortcuts

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