Documentation ¶
Index ¶
- func Check(e error)
- func CreateDb()
- func DeleteAllCoffeeOrders(c *fiber.Ctx) error
- func DeleteDb()
- func DeleteSingleNewestCoffeeOrderByEmailAddress(c *fiber.Ctx) error
- func InsertACoffeeOrderIntoDb(co *CoffeeOrder)
- func ListCoffeeOrders(c *fiber.Ctx) error
- func ListCoffeeOrdersByEmailAddress(c *fiber.Ctx) error
- func PostACoffeeOrder(c *fiber.Ctx) error
- func PutCoffeeOrderOverExistingByEmail(c *fiber.Ctx) error
- func ReplaceCoffeeOrdersIntoDb(cos *CoffeeOrders)
- func Root(c *fiber.Ctx) error
- type CoffeeOrder
- type CoffeeOrders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSingleNewestCoffeeOrderByEmailAddress ¶
func DeleteSingleNewestCoffeeOrderByEmailAddress(c *fiber.Ctx) error
DELETE /coffeeorders/:emailAddress
func InsertACoffeeOrderIntoDb ¶
func InsertACoffeeOrderIntoDb(co *CoffeeOrder)
func ListCoffeeOrdersByEmailAddress ¶
func ListCoffeeOrdersByEmailAddress(c *fiber.Ctx) error
GET /coffeeorders/:emailAddress
func PutCoffeeOrderOverExistingByEmail ¶
func PutCoffeeOrderOverExistingByEmail(c *fiber.Ctx) error
PUT /coffeeorders/:emailAddress
func ReplaceCoffeeOrdersIntoDb ¶
func ReplaceCoffeeOrdersIntoDb(cos *CoffeeOrders)
Types ¶
type CoffeeOrder ¶
type CoffeeOrders ¶
type CoffeeOrders struct {
CoffeeOrder []CoffeeOrder `json:"users,omitempty"`
}
func ReadCoffeeOrdersFromDb ¶
func ReadCoffeeOrdersFromDb() CoffeeOrders
Click to show internal directories.
Click to hide internal directories.