Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserServer ¶
Types ¶
type User ¶
type User struct { UserID string `json:"user_id" bson:"_id,omitempty"` Name string `json:"name" bson:"name,omitempty"` Email string `json:"email" bson:"email,omitempty"` Password string `json:"-" bson:"password,omitempty"` Roles []string `json:"roles" bson:"roles,omitempty"` CreatedAt time.Time `json:"created_at" bson:"created_at,omitempty"` }
func CreateUser ¶
func CreateUser(in *v1.CreateUserRequest) User
func UpdateUser ¶
func UpdateUser(in *v1.UpdateUserRequest) User
func (*User) CheckPassword ¶
func (*User) GeneratePasswordHash ¶
Click to show internal directories.
Click to hide internal directories.