menusrv

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 MenuItemItem struct {
	Name string
	Link string
}

MenuItemItem MenuItemItem

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) GetNew

func (c *Six910MenuService) GetNew() MenuService

GetNew GetNew

func (*Six910MenuService) UpdateMenu

func (c *Six910MenuService) UpdateMenu(menu *Menu) bool

UpdateMenu UpdateMenu

Jump to

Keyboard shortcuts

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