Documentation ¶
Index ¶
- Constants
- func CreateSessionSecret(app *common.App, otp *models.OTP) (string, int64, error)
- func DebugGetOTP(app *common.App, r *http.Request) (*models.OTP, error)
- func GetOTP(app *common.App, r *http.Request) (*models.OTP, error)
- func GetSessionUser(app *common.App, r *http.Request) (*models.User, error)
- func GetUser(app *common.App, ref models.UserRef) (*models.User, error)
- func GetUserByEmail(app *common.App, email string) (*models.User, error)
- func GetUserByID(app *common.App, id string) (*models.User, error)
- func RegionCollection(app *common.App, user *models.User, collectionID string) *firestore.CollectionRef
- func UserCollection(app *common.App, user *models.User, collectionID string) *firestore.CollectionRef
- func UserRefCollection(app *common.App, userRef models.UserRef, collectionID string) *firestore.CollectionRef
Constants ¶
View Source
const ( CONST_COL_SESSION = "sessions" CONST_COL_OTP = "otp" CONST_COL_USER = "users" )
Variables ¶
This section is empty.
Functions ¶
func CreateSessionSecret ¶
func DebugGetOTP ¶
GetOTP gets OTP record from firestore
func RegionCollection ¶
func RegionCollection(app *common.App, user *models.User, collectionID string) *firestore.CollectionRef
RegionCollection abstracts the handling of subdata to within the country/region
func UserCollection ¶
func UserCollection(app *common.App, user *models.User, collectionID string) *firestore.CollectionRef
UserCollection abstracts the handling of subdata to within the user object
func UserRefCollection ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.