Documentation ¶
Index ¶
- type EmployeePbFactory
- type EventPbFactory
- func (factory *EventPbFactory) NewFromEmployeeFilter(originator entities.TokenClaims, eventType entities.EventType, ...) (*pb.Event, error)
- func (factory *EventPbFactory) NewFromEmployeeMessage(originator entities.TokenClaims, eventType entities.EventType, ...) (*pb.Event, error)
- func (factory *EventPbFactory) NewFromUpdateEmployeeRequest(originator entities.TokenClaims, eventType entities.EventType, ...) (*pb.Event, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.