order

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: OSL-3.0 Imports: 6 Imported by: 2

README

Order Module

The order module offers a domain model for orders to be used to list orders of a customer.

Usage

Show orders of a customer

The module offers a data controller "customerorders" to get all orders of the current authenticated user/customer:

orders = data("customerorders")

Ports

The module offers a port that needs to be implemented to fetch the orders.

The module comes with 2 possible Adapters for the port:

  • FakeAdapter: Just returns some dummy orders - useful for local testing
  • EmailAdapters: Used to send mails
possible configurations

!WIP

  order:
    # use fake adapters for order fetching
    useFakeAdapters: true

Documentation

Index

Constants

View Source
const (
	// LogKey defines the module log category key
	LogKey = "order"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module definition of the order module

func (*Module) Configure

func (m *Module) Configure(injector *dingo.Injector)

Configure DI

func (*Module) Inject

func (m *Module) Inject(
	logger flamingo.Logger,
	config *struct {
		UseFakeAdapters bool `inject:"config:order.useFakeAdapters,optional"`
	},
)

Inject dependencies

Directories

Path Synopsis
infrastructure
interfaces

Jump to

Keyboard shortcuts

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