Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginRequestToUserWithPassword ¶
func LoginRequestToUserWithPassword(loginRequest mo.LoginRequest) *pb_user.UserWithPassword
LoginRequestToUserWithPassword converts the LoginRequest to a UserWithPassword.
Types ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUserFromPb ¶
NewUserFromPb creates a new User from a protobuf representation.
type UserWithPassword ¶
type UserWithPassword struct {
// contains filtered or unexported fields
}
UserWithPassword is a struct that represents the mapper of a user with password.
func NewUserWithPassword ¶
func NewUserWithPassword(userWithPassword *pb_user.UserWithPassword) *UserWithPassword
NewUserWithPassword creates a new UserWithPassword object.
func NewUserWithPasswordFromLoginRequest ¶
func NewUserWithPasswordFromLoginRequest(loginRequest mo.LoginRequest) *UserWithPassword
NewUserWithPasswordFromLoginRequest creates a new UserWithPassword from a LoginRequest.
func (*UserWithPassword) String ¶
func (u *UserWithPassword) String() string
String returns a string representation of the UserWithPassword.
func (*UserWithPassword) ToPb ¶
func (u *UserWithPassword) ToPb() *pb_user.UserWithPassword
ToPb returns a protobuf representation of the UserWithPassword.
func (*UserWithPassword) UserWithPasswordToLoginRequest ¶
func (u *UserWithPassword) UserWithPasswordToLoginRequest() mo.LoginRequest
UserWithPasswordToLoginRequest converts the UserWithPassword to a LoginRequest.
Click to show internal directories.
Click to hide internal directories.