application

package
v0.0.0-...-165d855 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandAdapter

type CommandAdapter struct {
	Service *as.Service
}

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

func (a CommandAdapter) CreateDlr(ctx context.Context, dlr me.Dlr) (me.Dlr, error)

CreateDlr sends the given dlr to the application layer for creating a new dlr.

func (CommandAdapter) DeleteDlr

func (a CommandAdapter) DeleteDlr(ctx context.Context, dlr me.Dlr) (me.Dlr, error)

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

func (a CommandAdapter) UpdateDlrBase(ctx context.Context, dlr me.Dlr) (me.Dlr, error)

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

func (a CommandAdapter) UpdateDlrCore(ctx context.Context, dlr me.Dlr) (me.Dlr, error)

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

func (a CommandAdapter) UpdateDlrStatus(ctx context.Context, dlr me.Dlr) (me.Dlr, error)

UpdateDlrStatus sends the given status value of the dlr to the repository of the infrastructure layer for updating status of dlr data.

Jump to

Keyboard shortcuts

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