userdb

package
v0.0.0-...-ef89dc0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prepare

func Prepare(db *sql.DB)

Types

type Client

type Client interface {
	GetUser(id int64) (*userdbentities.User, error)
	List() (*[]userdbentities.User, error)
	CreateUser(user userdbentities.User) error
	CreateUserByField(email, fullName, telephone string) error
	UpdateUser(user *userdbentities.User) error
	DeleteUser(id int64) error
}

func NewClient

func NewClient(db *sql.DB) Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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