Documentation ¶
Index ¶
- Variables
- func ActivateDrink(name string) (bool, error)
- func AddDrink(name string, drink models.Drink) (models.DrinkDB, error)
- func DeactivateDrink(name string) (bool, error)
- func DeleteDeInitializeMachine() (bool, error)
- func GetAvailableDrinks() ([]models.DrinkDB, error)
- func GetConsumeDrink(name string, den models.Denomination) (bool, models.Denomination, models.Drink, error)
- func GetCurrentMoney() *models.Denomination
- func GetDenominationValueByName(denomination string) (string, error)
- func GetDrinkByName(name string) (models.Drink, error)
- func GetIngredientValueByName(name string) (string, error)
- func GetMachineIngredients() *models.Ingredient
- func InitDatabaseFromConfig()
- func InitializeMachine(ing models.Ingredient, den models.Denomination) (bool, error)
- func PutIngredientsByName(ingredient string, value uint16) (models.Ingredient, error)
- func RemoveDrink(name string) (bool, error)
- func UpdateDenominationPatch(den models.Denomination) (models.Denomination, error)
- func UpdateDenominationPut(den models.Denomination) (models.Denomination, error)
- func UpdateDenominationValueByName(denomination string, value int) (models.Denomination, error)
- func UpdateIngredientPatch(ing models.Ingredient) (models.Ingredient, error)
- func UpdateIngredientPut(ing models.Ingredient) (models.Ingredient, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MachineInitialized bool = false
)
Functions ¶
func ActivateDrink ¶
func DeactivateDrink ¶
func GetAvailableDrinks ¶
func GetConsumeDrink ¶
func GetConsumeDrink(name string, den models.Denomination) (bool, models.Denomination, models.Drink, error)
func GetCurrentMoney ¶
func GetCurrentMoney() *models.Denomination
func GetMachineIngredients ¶
func GetMachineIngredients() *models.Ingredient
func InitDatabaseFromConfig ¶
func InitDatabaseFromConfig()
func InitializeMachine ¶
func InitializeMachine(ing models.Ingredient, den models.Denomination) (bool, error)
func PutIngredientsByName ¶
func PutIngredientsByName(ingredient string, value uint16) (models.Ingredient, error)
func RemoveDrink ¶
func UpdateDenominationPatch ¶
func UpdateDenominationPatch(den models.Denomination) (models.Denomination, error)
func UpdateDenominationPut ¶
func UpdateDenominationPut(den models.Denomination) (models.Denomination, error)
func UpdateDenominationValueByName ¶
func UpdateDenominationValueByName(denomination string, value int) (models.Denomination, error)
func UpdateIngredientPatch ¶
func UpdateIngredientPatch(ing models.Ingredient) (models.Ingredient, error)
func UpdateIngredientPut ¶
func UpdateIngredientPut(ing models.Ingredient) (models.Ingredient, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.