Documentation ¶
Index ¶
- type Menu
- type MenuItemItem
- type MenuService
- type Response
- type Six910MenuService
- func (c *Six910MenuService) AddMenu(menu *Menu) bool
- func (c *Six910MenuService) DeleteMenu(name string) bool
- func (c *Six910MenuService) GetMenu(name string) (bool, *Menu)
- func (c *Six910MenuService) GetMenuList() *[]Menu
- func (c *Six910MenuService) GetNew() MenuService
- func (c *Six910MenuService) UpdateMenu(menu *Menu) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu struct { Name string Location string Active bool Brand string BrandHTML template.HTML BrandLink string Shade string Background string Style string StyleCSS template.CSS ShadeList *[]string BackgroundList *[]string MenuItemList *[]MenuItemItem CartCount int64 LoggedIn bool }
Menu Menu
type MenuService ¶
type MenuService interface { AddMenu(menu *Menu) bool UpdateMenu(menu *Menu) bool GetMenu(name string) (bool, *Menu) GetMenuList() *[]Menu DeleteMenu(name string) bool }
MenuService MenuService
type Response ¶
type Response struct { Success bool `json:"success"` Name string `json:"name"` FailCode int `json:"failCode"` }
Response Response
type Six910MenuService ¶
type Six910MenuService struct { MenuStore ds.JSONDatastore MenuStorePath string Log *lg.Logger }
Six910MenuService Six910MenuService
func (*Six910MenuService) AddMenu ¶
func (c *Six910MenuService) AddMenu(menu *Menu) bool
AddMenu AddMenu
func (*Six910MenuService) DeleteMenu ¶
func (c *Six910MenuService) DeleteMenu(name string) bool
DeleteMenu DeleteMenu
func (*Six910MenuService) GetMenu ¶
func (c *Six910MenuService) GetMenu(name string) (bool, *Menu)
GetMenu GetMenu
func (*Six910MenuService) GetMenuList ¶
func (c *Six910MenuService) GetMenuList() *[]Menu
GetMenuList GetMenuList
func (*Six910MenuService) UpdateMenu ¶
func (c *Six910MenuService) UpdateMenu(menu *Menu) bool
UpdateMenu UpdateMenu
Click to show internal directories.
Click to hide internal directories.