builder

package
v0.0.0-...-3ce7e21 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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