db

package
v0.0.0-...-6e05bac Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New() (*DB, error)

func (*DB) Close

func (o *DB) Close() error

func (*DB) GetAllUsers

func (o *DB) GetAllUsers() []User

func (*DB) UpdateUser

func (o *DB) UpdateUser(u User)

type User

type User struct {
	gorm.Model
	Name        string
	PhoneNumber string
}

Jump to

Keyboard shortcuts

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