infrastructure

package
v0.0.0-...-436674b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 5 Imported by: 0

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

func NewUserFromPb(user *pb_user.User) *User

NewUserFromPb creates a new User from a protobuf representation.

func (*User) String

func (u *User) String() string

String returns a string representation of the User.

func (*User) ToEntity

func (u *User) ToEntity() *me.User

func (*User) ToObject

func (u *User) ToObject() *mo.User

func (*User) ToPb

func (u *User) ToPb() *pb_user.User

ToPb returns a protobuf representation of the User.

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

ToPb returns a protobuf representation of the UserWithPassword.

func (*UserWithPassword) UserWithPasswordToLoginRequest

func (u *UserWithPassword) UserWithPasswordToLoginRequest() mo.LoginRequest

UserWithPasswordToLoginRequest converts the UserWithPassword to a LoginRequest.

Jump to

Keyboard shortcuts

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