mysql

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mysql holds view model repositories

Package mysql holds view model repositories

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserRepository

func NewUserRepository(db *sql.DB) persistence.UserRepository

NewUserRepository returns mysql view model repository for user

Types

type User

type User struct {
	ID         string           `json:"id"`
	Email      string           `json:"emailAddress"`
	FacebookID mysql.NullString `json:"facebookId"`
	GoogleID   mysql.NullString `json:"googleId"`
}

User model

func (User) GetEmail

func (u User) GetEmail() string

GetEmail the email

func (User) GetFacebookID

func (u User) GetFacebookID() string

GetFacebookID facebook id

func (User) GetGoogleID

func (u User) GetGoogleID() string

GetGoogleID google id

func (User) GetID

func (u User) GetID() string

GetID the id

Jump to

Keyboard shortcuts

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