domainorder

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOrderLineCommand

type AddOrderLineCommand struct {
	Price     uint
	Meal      string
	IDOrder   string
	Quantity  uint
	EventType eventsourcing.EventType
}

AddOrderLineCommand is a dto to pass the order info and the event type, in order to create the command

type AddOrderLineCommandHandler added in v0.0.3

type AddOrderLineCommandHandler struct{}

AddOrderLineCommandHandler is a struct use for OrderCommandLine methods

func NewAddOrderLineCommandHandler added in v0.0.3

func NewAddOrderLineCommandHandler() *AddOrderLineCommandHandler

NewAddOrderLineCommandHandler returns a new AddOrderLineCommandHandler

func (AddOrderLineCommandHandler) Handle added in v0.0.3

Handle handles the AddOrderLineCommand and pushes the right event to RMQ

type CreateOrderCommand

type CreateOrderCommand struct {
	Customer  string
	EventType eventsourcing.EventType
}

CreateOrderCommand is a dto to pass the customer info and the event type, in order to create the command

type CreateOrderCommandHandler added in v0.0.3

type CreateOrderCommandHandler struct{}

CreateOrderCommandHandler is a struct use for OrderCommand methods

func NewCreateOrderCommandHandler added in v0.0.3

func NewCreateOrderCommandHandler() *CreateOrderCommandHandler

NewCreateOrderCommandHandler returns a new CreateOrderCommandHandler

func (CreateOrderCommandHandler) Handle added in v0.0.3

Handle handles the CreateOrderCommand and pushes the right event to RMQ

type DeleteOrderLine

type DeleteOrderLine struct {
	IDOrderLine string
	EventType   eventsourcing.EventType
}

DeleteOrderLine is a dto to pass the order info and the event type, in order to create the command

type DeleteOrderLineCommandHandler added in v0.0.3

type DeleteOrderLineCommandHandler struct{}

DeleteOrderLineCommandHandler is a struct use for DeleteOrderLine methods

func NewDeleteOrderLineCommandHandler added in v0.0.3

func NewDeleteOrderLineCommandHandler() *DeleteOrderLineCommandHandler

NewDeleteOrderLineCommandHandler returns a new DeleteOrderLineCommandHandler

func (DeleteOrderLineCommandHandler) Handle added in v0.0.3

Handle handles the DeleteOrderLine command and pushes the right event to RMQ

type GetOrderQuery

type GetOrderQuery struct {
	OrderID string
}

GetOrderQuery is a dto to pass the order id, in order to create the query for order

type OrderQueryHandler

type OrderQueryHandler struct{}

OrderQueryHandler is a struct use for OrderQuery methods

func NewOrderQueryHandler

func NewOrderQueryHandler() *OrderQueryHandler

NewOrderQueryHandler returns a new OrderQueryHandler

func (OrderQueryHandler) Handle

Handle handles the order query and retrieves the order from Elastic Search

type UpdateOrderCommand

type UpdateOrderCommand struct {
	IDOrder   string
	Customer  string
	EventType eventsourcing.EventType
}

UpdateOrderCommand is a dto to pass the customer and order info and the event type, in order to create the command

type UpdateOrderCommandHandler added in v0.0.3

type UpdateOrderCommandHandler struct{}

UpdateOrderCommandHandler is a struct use for OrderCommand methods

func NewUpdateOrderCommandHandler added in v0.0.3

func NewUpdateOrderCommandHandler() *UpdateOrderCommandHandler

NewUpdateOrderCommandHandler returns a new UpdateOrderCommandHandler

func (UpdateOrderCommandHandler) Handle added in v0.0.3

Handle handles the UpdateOrderCommandHandler and pushes the right event to RMQ

type UpdateQuantityCommand

type UpdateQuantityCommand struct {
	IDOrderLine string
	Quantity    uint
	EventType   eventsourcing.EventType
}

UpdateQuantityCommand is a dto to pass the order info and the event type, in order to create the command

type UpdateQuantityCommandHandler added in v0.0.3

type UpdateQuantityCommandHandler struct{}

UpdateQuantityCommandHandler is a struct use for OrderCommandLine methods

func NewUpdateQuantityCommandHandler added in v0.0.3

func NewUpdateQuantityCommandHandler() *UpdateQuantityCommandHandler

NewUpdateQuantityCommandHandler returns a new UpdateQuantityCommandHandler

func (UpdateQuantityCommandHandler) Handle added in v0.0.3

Handle handles the UpdateQuantityCommand and pushes the right event to RMQ

Jump to

Keyboard shortcuts

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