webdata

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppList []*AppCategory

AppList in home page

Functions

func GetApplicationUsed

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

GetApplicationUsed saved in cookie

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 GetApplicationWithLiked

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

GetApplicationWithLiked get application with liked populated

func GetNewInstancesOfAppList

func GetNewInstancesOfAppList() []*AppCategory

GetNewInstancesOfAppList get new instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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