Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateIndex ¶
PopulateIndex ...
Types ¶
type UserModel ¶
type UserModel struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id, omitempty"` FirstName string `json:"firstname" bson:"firstname"` LastName string `json:"lastname" bson:"lastname"` Email string `json:"email" bson:"email"` PasswordHash string `json:"password" bson:"password"` }
UserModel ...
func CreateUserModel ¶
CreateUserModel ...
func (*UserModel) ComparePasswordHash ¶
ComparePasswordHash ...
func (*UserModel) SetHashPassword ¶
SetHashPassword ...
type UserService ¶
type UserService struct {
Collection *mongo.Collection
}
UserService ...
func NewUserService ¶
func NewUserService(c *mongo.Client, config *root.MongoConfig) *UserService
NewUserService ...
Click to show internal directories.
Click to hide internal directories.