vendingMachineDomain

package
v0.0.0-...-32905a6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurator

type Configurator interface {
	Configure(ctx context.Context) error
}

type HttpController

type HttpController interface {
	InsertCoin(c echo.Context) error
	SelectProduct(c echo.Context) error
	GetVendingMachineById(c echo.Context) error
}

type Inventory

type Inventory struct {
	Cola   int
	Coffee int
}

type VendingMachine

type VendingMachine struct {
	ID        int `json:"id"`
	Status    string
	Inventory *Inventory
	Coins     int
}

Jump to

Keyboard shortcuts

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