Documentation ¶
Index ¶
- type UserBuilder
- func (userBuilder *UserBuilder) Build() model.User
- func (userBuilder *UserBuilder) SetCreatedAt(createdAt time.Time) *UserBuilder
- func (userBuilder *UserBuilder) SetDocumentId(documentId string) *UserBuilder
- func (userBuilder *UserBuilder) SetFirstname(firstname string) *UserBuilder
- func (userBuilder *UserBuilder) SetID(id uuid.UUID) *UserBuilder
- func (userBuilder *UserBuilder) SetLastname(lastname string) *UserBuilder
- func (userBuilder *UserBuilder) SetUpdatedAt(updatedAt time.Time) *UserBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserBuilder ¶
type UserBuilder struct { ID uuid.UUID Firstname string Lastname string DocumentId string CreatedAt time.Time UpdatedAt time.Time }
func NewUserBuilder ¶
func NewUserBuilder() *UserBuilder
func (*UserBuilder) Build ¶
func (userBuilder *UserBuilder) Build() model.User
func (*UserBuilder) SetCreatedAt ¶
func (userBuilder *UserBuilder) SetCreatedAt(createdAt time.Time) *UserBuilder
func (*UserBuilder) SetDocumentId ¶
func (userBuilder *UserBuilder) SetDocumentId(documentId string) *UserBuilder
func (*UserBuilder) SetFirstname ¶
func (userBuilder *UserBuilder) SetFirstname(firstname string) *UserBuilder
func (*UserBuilder) SetID ¶
func (userBuilder *UserBuilder) SetID(id uuid.UUID) *UserBuilder
func (*UserBuilder) SetLastname ¶
func (userBuilder *UserBuilder) SetLastname(lastname string) *UserBuilder
func (*UserBuilder) SetUpdatedAt ¶
func (userBuilder *UserBuilder) SetUpdatedAt(updatedAt time.Time) *UserBuilder
Click to show internal directories.
Click to hide internal directories.