Documentation ¶
Index ¶
- type CommandAdapter
- func (a CommandAdapter) CreateDlr(ctx context.Context, dlr me.Dlr) (me.Dlr, error)
- func (a CommandAdapter) DeleteDlr(ctx context.Context, dlr me.Dlr) (me.Dlr, error)
- func (a CommandAdapter) Log(ctx context.Context, logData *pb.LogData) (*pb.LoggingResult, error)
- func (a CommandAdapter) UpdateDlrBase(ctx context.Context, dlr me.Dlr) (me.Dlr, error)
- func (a CommandAdapter) UpdateDlrCore(ctx context.Context, dlr me.Dlr) (me.Dlr, error)
- func (a CommandAdapter) UpdateDlrStatus(ctx context.Context, dlr me.Dlr) (me.Dlr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandAdapter ¶
CommandAdapter is an adapter for Hexagonal Architecture Pattern. It is used to communicate with the application layer.
func NewCommandAdapter ¶
func NewCommandAdapter(s *as.Service) CommandAdapter
NewCommandAdapter creates a new *CommandAdapter.
func (CommandAdapter) CreateDlr ¶
CreateDlr sends the given dlr to the application layer for creating a new dlr.
func (CommandAdapter) DeleteDlr ¶
DeleteDlr sends the given dlr to the application layer for deleting data.
func (CommandAdapter) Log ¶
func (a CommandAdapter) Log(ctx context.Context, logData *pb.LogData) (*pb.LoggingResult, error)
Log sends the given log to the logging micro service.
func (CommandAdapter) UpdateDlrBase ¶
UpdateDlrBase sends the given base values of the dlr to the repository of the infrastructure layer for updating base values of dlr data.
func (CommandAdapter) UpdateDlrCore ¶
UpdateDlrCore sends the given core values of the dlr to the repository of the infrastructure layer for updating core values of dlr data.
func (CommandAdapter) UpdateDlrStatus ¶
UpdateDlrStatus sends the given status value of the dlr to the repository of the infrastructure layer for updating status of dlr data.