Documentation ¶
Index ¶
- type EmployeeEntityFactory
- func (factory *EmployeeEntityFactory) NewFromEmployee(e *pb.Employee) (employee *entities.Employee, err error)
- func (factory *EmployeeEntityFactory) NewFromEmployeeFilter(e *pb.EmployeeFilter) (employee *entities.Employee, err error)
- func (factory *EmployeeEntityFactory) NewFromNewEmployeeRequest(e *pb.NewEmployeeRequest) (employee *entities.Employee, err error)
- func (factory *EmployeeEntityFactory) NewFromUpdateEmployeeRequest(e *pb.UpdateEmployeeRequest) (employee *entities.Employee, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmployeeEntityFactory ¶
type EmployeeEntityFactory struct {
// contains filtered or unexported fields
}
EmployeeEntityFactory is entities.Employee factory.
func NewEmployeeEntityFactory ¶
func NewEmployeeEntityFactory(roleRepository roleRepository.Repository) *EmployeeEntityFactory
NewEmployeeEntityFactory creates new factory.
func (*EmployeeEntityFactory) NewFromEmployee ¶
func (factory *EmployeeEntityFactory) NewFromEmployee(e *pb.Employee) (employee *entities.Employee, err error)
NewFromEmployee creates Employee entity from Employee message.
func (*EmployeeEntityFactory) NewFromEmployeeFilter ¶
func (factory *EmployeeEntityFactory) NewFromEmployeeFilter(e *pb.EmployeeFilter) (employee *entities.Employee, err error)
NewFromEmployeeFilter creates Employee entity from EmployeeFilter message.
func (*EmployeeEntityFactory) NewFromNewEmployeeRequest ¶
func (factory *EmployeeEntityFactory) NewFromNewEmployeeRequest(e *pb.NewEmployeeRequest) (employee *entities.Employee, err error)
NewFromNewEmployeeRequest creates Employee entity from NewEmployeeRequest message.
func (*EmployeeEntityFactory) NewFromUpdateEmployeeRequest ¶
func (factory *EmployeeEntityFactory) NewFromUpdateEmployeeRequest(e *pb.UpdateEmployeeRequest) (employee *entities.Employee, err error)
NewFromUpdateEmployeeRequest creates Employee entity from UpdateEmployeeRequest message.
Click to show internal directories.
Click to hide internal directories.