webdata

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApplicationUsed

func GetApplicationUsed(r *http.Request) ([]string, error)

GetApplicationUsed saved in cookie

func ReloadAppList added in v1.0.4

func ReloadAppList()

ReloadAppList reload app list

Types

type AccountPageData

type AccountPageData struct {
	HasPassword bool
}

AccountPageData /account

type AppCard

type AppCard struct {
	Name            string
	TemplateName    string
	ImageURL        string
	FontsAwesomeTag string
	Link            string
	Title           string
	Description     string
	Used            bool
	AmountUsed      uint64
	Liked           bool
	AmountLiked     uint64
}

AppCard used to render app card in pages

func GetApplicationsByName

func GetApplicationsByName(name string) *AppCard

GetApplicationsByName get application by name

type AppCategory

type AppCategory struct {
	Category string
	AppCards []*AppCard
}

AppCategory card list for single category

func GetAppList added in v1.0.4

func GetAppList() []*AppCategory

GetAppList get app list from redis

func GetApplicationWithLiked

func GetApplicationWithLiked(user *db.User) []*AppCategory

GetApplicationWithLiked get application with liked populated

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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