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

This section is empty.

Types

type User

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

User is a struct that represents the ebus mapper 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 Users

type Users []*User

func NewUserFromEntities

func NewUserFromEntities(entities []me.User) 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