api

package
v0.0.0-...-41be704 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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 Application

type Application struct {
	// contains filtered or unexported fields
}

Application is the core of the application. It contains business logic and outbound port interfaces. Business logic can call outbound adapters using these interfaces.

func NewApplication

func NewApplication(inventory ports.InventoryPort, payment ports.PaymentPort) *Application

func (*Application) CreateOrder

func (a *Application) CreateOrder(ctx context.Context, order *domain.Order) (*domain.Order, error)

Jump to

Keyboard shortcuts

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