factory

package
v0.0.0-...-718b68f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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