service

package
v0.0.0-...-18aef32 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order interface {
	Startup()
	Shutdown()
	Process(input model.OrderProcessInput) (*model.Order, error)
}

Order is the service provider interface

type OrderImpl

type OrderImpl struct {
	InventoryRepository repository.Inventory `inject:"inventoryRepository"`
	OrderRepository     repository.Order     `inject:"orderRepository"`
	DB                  *database.MySQL      `inject:"mysql"`
	// contains filtered or unexported fields
}

OrderImpl is the service provider implementation

func (*OrderImpl) Process

func (s *OrderImpl) Process(input model.OrderProcessInput) (*model.Order, error)

Process processes an order

func (*OrderImpl) Shutdown

func (s *OrderImpl) Shutdown()

Shutdown cleans up everything and shuts down

func (*OrderImpl) Startup

func (s *OrderImpl) Startup()

Startup performs startup functions

Jump to

Keyboard shortcuts

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