presentation

package
v0.0.0-...-94051e6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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