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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmployeePbFactory

type EmployeePbFactory struct {
}

EmployeePbFactory is pb.Employee factory.

func NewEmployeePbFactory

func NewEmployeePbFactory() *EmployeePbFactory

NewEmployeePbFactory creates new factory.

func (*EmployeePbFactory) NewFromEmployee

func (factory *EmployeePbFactory) NewFromEmployee(e *entities.Employee) (*pb.Employee, error)

NewFromEmployee creates new pb.Employee instance from Employee entity.

type EventPbFactory

type EventPbFactory struct {
}

EventPbFactory is pb.Event factory.

func NewEventPbFactory

func NewEventPbFactory() *EventPbFactory

NewEventPbFactory creates new factory.

func (*EventPbFactory) NewFromEmployeeFilter

func (factory *EventPbFactory) NewFromEmployeeFilter(originator entities.TokenClaims, eventType entities.EventType, filter *pb.EmployeeFilter) (*pb.Event, error)

NewFromEmployeeFilter creates event based on given Employee message.

func (*EventPbFactory) NewFromEmployeeMessage

func (factory *EventPbFactory) NewFromEmployeeMessage(originator entities.TokenClaims, eventType entities.EventType, employee *pb.Employee) (*pb.Event, error)

NewFromEmployeeMessage creates event based on given Employee message.

func (*EventPbFactory) NewFromUpdateEmployeeRequest

func (factory *EventPbFactory) NewFromUpdateEmployeeRequest(originator entities.TokenClaims, eventType entities.EventType, request *pb.UpdateEmployeeRequest) (*pb.Event, error)

NewFromUpdateEmployeeRequest creates event based on given Employee message.

Jump to

Keyboard shortcuts

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