databaseService

package
v0.0.0-...-bf229e6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(firstName, lastName, email string, subscribedToArticles, subscribedToEvents bool) error

CreateUser adds the specified entry to the User table.

func DeleteUser

func DeleteUser(email string) error

DeleteUser removes the specified entry from the User table.

func ExistsUser

func ExistsUser(email string) bool

ExistsUser determines whether a user with the specified email exists.

Types

type UserEntry

type UserEntry struct {
	FirstName            string
	LastName             string
	Email                string
	SubscribedToArticles bool
	SubscribedToEvents   bool
}

UserEntry is a row from the "User" table.

func GetUser

func GetUser(email string) (*UserEntry, error)

GetUser retrieves the user with the specified email.

Jump to

Keyboard shortcuts

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