handlers

package
v0.0.0-...-0549c05 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecrementInventory

func DecrementInventory(order models.Order) error

DecrementInventory will decrement the inventory of produts by the specific quantity in the order

func HandleError

func HandleError(event events.Event)

HandleError will publish an error event to Kafka

func PickAndPackOrder

func PickAndPackOrder(order models.Order) error

PickAndPackOrder will alert the warehouse personnel to pick and pack the customers order

func SendEmail

func SendEmail(notification models.Notification) error

SendEmail will construct and send an email based on the supplied notification information

func ShipOrder

func ShipOrder(order models.Order) error

ShipOrder will alert the customer the order is being shipped

Types

This section is empty.

Jump to

Keyboard shortcuts

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