Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckoutPrimaryPort ¶
CheckoutPrimaryPort is the entrypoint for the checkout Package
func NewCheckoutService ¶
func NewCheckoutService(repo CheckoutSecondaryPort) CheckoutPrimaryPort
NewCheckoutService receives a Secondary Port of domain and insantiates a Primary Port
type CheckoutSecondaryPort ¶
CheckoutSecondaryPort is the way the business rules communicate to the external world
type Order ¶
type Order struct { ID string `json:"id"` Email string `json:"email"` Amount float64 `json:"amount"` Currency string `json:"currency"` ProductID int `json:"productid"` PaymentToken string `json:"paymenttoken"` }
Order represents a buying order from a customer
type ProcessPrimaryPort ¶
ProcessPrimaryPort is the entrypoint for the checkout Package
func NewProcessService ¶
func NewProcessService(repo ProcessSecondaryPort) ProcessPrimaryPort
NewProcessService receives a Secondary Port of domain and insantiates a Primary Port
type ProcessSecondaryPort ¶
ProcessSecondaryPort is the way the business rules communicate to the external world
Click to show internal directories.
Click to hide internal directories.