Discover Packages
github.com/flyin/tic-tac-toe/server
account
models
package
Version:
v0.0.0-...-c433275
Opens a new window with list of versions in this module.
Published: Nov 2, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func UserIDToString(id interface{}) string
type Context struct {
Service userGetter
EchoContext echo.Context
}
type LazyUserFn func() *User
type Social struct {
Provider string `json:"provider" bson:"provider"`
Name string `json:"name" bson:"name"`
Email string `json:"email" bson:"email"`
PhotoURL string `json:"photoURL" bson:"photoURL"`
SocialID string `json:"socialID" bson:"socialID"`
}
type User struct {
ID interface{} `json:"_id" bson:"_id,omitempty"`
Social map[string ]*Social `json:"social" bson:"social"`
Email string `json:"email" bson:"email"`
Name string `json:"name" bson:"name"`
PhotoURL string `json:"photoURL" bson:"photoURL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.