presentation

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginRequest

type LoginRequest struct {
	// contains filtered or unexported fields
}

LoginRequest is a struct that represents the dto of the required values of login for authentication.

func NewLoginRequest

func NewLoginRequest(pb *pb.LoginRequest) *LoginRequest

NewLoginRequest creates a new *LoginRequest.

func NewLoginRequestFromObject

func NewLoginRequestFromObject(object *mo.LoginRequest) *LoginRequest

NewLoginRequestFromObject creates a new *LoginRequest from object.

func (*LoginRequest) String

func (s *LoginRequest) String() string

String returns a string representation of the LoginRequest.

func (*LoginRequest) ToObject

func (s *LoginRequest) ToObject() *mo.LoginRequest

ToEntity returns a object representation of the LoginRequest.

func (*LoginRequest) ToPb

func (s *LoginRequest) ToPb() *pb.LoginRequest

ToPb returns a protobuf representation of the LoginRequest.

type Token

type Token struct {
	// contains filtered or unexported fields
}

Token is a struct that represents the dto of a token for authentication.

func NewToken

func NewToken(pb *pb.Token) *Token

NewToken creates a new *Token.

func NewTokenFromObject

func NewTokenFromObject(object *mo.Token) *Token

NewTokenFromObject creates a new *Token from object.

func (*Token) String

func (s *Token) String() string

String returns a string representation of the Token.

func (*Token) ToObject

func (s *Token) ToObject() *mo.Token

ToEntity returns a object representation of the Token.

func (*Token) ToPb

func (s *Token) ToPb() *pb.Token

ToPb returns a protobuf representation of the Token.

type User

type User struct {
	// contains filtered or unexported fields
}

User is a struct that represents the dto of a user basic values.

func NewUser

func NewUser(pb *pb.User) *User

NewUser creates a new *User.

func NewUserFromEntity

func NewUserFromEntity(entity me.User) *User

NewUserFromEntity creates a new *User from entity.

func (*User) String

func (s *User) String() string

String returns a string representation of the User.

func (*User) ToEntity

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

ToEntity returns a entity representation of the User.

func (*User) ToPb

func (s *User) ToPb() *pb.User

ToPb returns a protobuf representation of the User.

type UserFilter

type UserFilter struct {
	// contains filtered or unexported fields
}

UserFilter is a struct that represents the filter dto of a user.

func NewUserFilter

func NewUserFilter(pb *pb.UserFilter) *UserFilter

NewUserFilter creates a new *UserFilter.

func NewUserFilterFromEntity

func NewUserFilterFromEntity(entity me.UserFilter) *UserFilter

NewUserFilterFromEntity creates a new *UserFilter from entity.

func (*UserFilter) String

func (s *UserFilter) String() string

String returns a string representation of the UserFilter.

func (*UserFilter) ToEntity

func (s *UserFilter) ToEntity() *me.UserFilter

ToEntity returns a entity representation of the UserFilter.

type UserPassword

type UserPassword struct {
	// contains filtered or unexported fields
}

UserPassword is a struct that represents the dto of a user password values.

func NewUserPassword

func NewUserPassword(pb *pb.UserPassword) *UserPassword

NewUserPassword creates a new *UserPassword.

func NewUserPasswordFromEntity

func NewUserPasswordFromEntity(entity me.UserPassword) *UserPassword

NewUserPasswordFromEntity creates a new *UserPassword from entity.

func (*UserPassword) String

func (s *UserPassword) String() string

String returns a string representation of the User.

func (*UserPassword) ToEntity

func (s *UserPassword) ToEntity() *me.UserPassword

ToEntity returns a entity representation of the UserPassword.

func (*UserPassword) ToPb

func (s *UserPassword) ToPb() *pb.UserPassword

ToPb returns a protobuf representation of the UserPassword.

type UserPasswords

type UserPasswords []*UserPassword

func NewUserPasswordFromEntities

func NewUserPasswordFromEntities(entities []me.UserPassword) UserPasswords

NewUserPasswordsFromEntities creates a new []*UserPassword from entities.

func (UserPasswords) ToPbs

func (s UserPasswords) ToPbs() *pb.UserPasswords

ToPbs returns a protobuf representation of the UserPasswords.

type Users

type Users struct {
	Users     []*User `json:"users"`
	TotalRows int64   `json:"total_rows"`
}

func NewUserFromEntities

func NewUserFromEntities(entities me.Users) Users

NewUsersFromEntities creates a new []*User from entities.

func (Users) ToPbs

func (s Users) ToPbs() *pb.Users

ToPbs returns a protobuf representation of the Users.

Jump to

Keyboard shortcuts

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