package
0.0.0-20210205210922-7d965fef1595
Repository: https://github.com/jbpratt/tos.git
Documentation: pkg.go.dev
# Functions
NewMenuService creates a menu service for interacting with the database.
NewOrderService creates a new order service for interacting with the database.
NewServices creates a Service struct with all of the ServiceConfigs passed into it.
WithMenu is used for calling NewMenuService with a specific db.
WithOrder is used for calling NewOrderService with a specific db.
WithSqlite takes in a path and opens the database.
# Structs
Services is the implementation of both the Menu and Order service for interacting with the database as well as the databse itself.
# Interfaces
MenuDB is everything that interacts with the database involving the menu.
MenuService the the abstraction for the MenuDB.
OrderDB is everything that interacts with the database involving the orders.
OrderService is the abstraction of the db layer.
# Type aliases
Config is used for determing use of which services and db.