go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/user/internal/infrastructure/persistence/mysql Index | Files

package mysql

import "github.com/vardius/go-api-boilerplate/cmd/user/internal/infrastructure/persistence/mysql"

Package mysql holds view model repositories

Package mysql holds view model repositories

Index

Package Files

user_model.go user_repository.go

func NewUserRepository Uses

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

NewUserRepository returns mysql view model repository for user

type User Uses

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 Uses

func (u User) GetEmail() string

GetEmail the email

func (User) GetFacebookID Uses

func (u User) GetFacebookID() string

GetFacebookID facebook id

func (User) GetGoogleID Uses

func (u User) GetGoogleID() string

GetGoogleID google id

func (User) GetID Uses

func (u User) GetID() string

GetID the id

Package mysql imports 7 packages (graph) and is imported by 1 packages. Updated 2020-05-27. Refresh now. Tools for package owners.