user

package
v0.0.0-...-0523346 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserLib

type UserLib struct {
	Ctx   context.Context
	Users *firestore.CollectionRef
}

func InitUser

func InitUser(sdkLocation string, database string) (*UserLib, error)

func (*UserLib) GetData

func (ul *UserLib) GetData(username string) (*UserModel, error)

func (*UserLib) InsertOrUpdateData

func (ul *UserLib) InsertOrUpdateData(username string, um UserModel) error

type UserModel

type UserModel struct {
	Fullname string `firestore:"fullname"`
	Email    string `firestore:"email"`
	Password string `firestore:"password"`
}

Jump to

Keyboard shortcuts

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