Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCode is a config or an internal error ErrCode = errors.New("Case statement in code is not correct.") // ErrNoResult is a not results error ErrNoResult = errors.New("Result not found.") ErrUnavailable = errors.New("Database is unavailable.") ErrUnauthorized = errors.New("User does not have permission to perform this operation.") )
Functions ¶
func ClientCreate ¶
ClientCreate creates new user record in DB temporary disabled: ', phone, group, preflang, company, taxnum, country, state, city, district, postcode, address, pdtype, house, floor, door, dcompany, dcountry, dstate, dcity, ddistrict, dpostcode, daddress, dpdtype, dhouse, dfloor, ddoor string, promotions bool'
Types ¶
type Client ¶
type Client struct { // client infos ObjectID bson.ObjectId `json:"_id" bson:"_id"` FirstName string `json:"fname" bson:"fname"` LastName string `json:"lname" bson:"lname"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` Status int `json:"status" bson:"status"` }
Client struct is used for storing users (non administrative user, client only)
func ClientByEmail ¶
ClientByEmail returns client with given email address
Click to show internal directories.
Click to hide internal directories.