model

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: AGPL-3.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Flare

Define all program data models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v0.0.4

type API struct {
	Name  string `json:"Name"`
	Path  string `json:"Path"`
	Alias string `json:"Alias"`
}

API Data Model

type Application added in v0.0.5

type Application struct {
	Title                   string `yaml:"Title"`
	Footer                  string `yaml:"Footer"`
	OpenAppNewTab           bool   `yaml:"OpenAppNewTab"`
	OpenBookmarkNewTab      bool   `yaml:"OpenBookmarkNewTab"`
	ShowTitle               bool   `yaml:"ShowTitle"`
	Greetings               string `yaml:"Greetings"`
	ShowSearchComponent     bool   `yaml:"ShowSearchComponent"`
	DisabledSearchAutoFocus bool   `yaml:"DisabledSearchAutoFocus"`
	ShowDateTime            bool   `yaml:"ShowDateTime"`
	ShowApps                bool   `yaml:"ShowApps"`
	ShowBookmarks           bool   `yaml:"ShowBookmarks"`
	HideSettingsButton      bool   `yaml:"HideSettingButton"`
	HideHelpButton          bool   `yaml:"HideHelpButton"`
	Theme                   string `yaml:"Theme"`
	ShowWeather             bool   `yaml:"ShowWeather"`
	Location                string `yaml:"Location"`
	EnableEncryptedLink     bool   `yaml:"EnableEncryptedLink"`
	IconMode                string `yaml:"IconMode"`
	KeepLetterCase          bool   `yaml:"KeepLetterCase"`
}

Application Data Model

type Bookmark

type Bookmark struct {
	Name     string `yaml:"name"`
	URL      string `yaml:"link"`
	Icon     string `yaml:"icon,omitempty"`
	Desc     string `yaml:"desc,omitempty"`
	Private  bool   `yaml:"private,omitempty"`
	Category string `yaml:"category,omitempty"`
}

Generic Bookmark Data Model

type Bookmarks added in v0.0.6

type Bookmarks struct {
	Categories []Category `yaml:"categories,omitempty"`
	Items      []Bookmark `yaml:"links"`
}

Generic Bookmarks Data Model

type Category

type Category struct {
	ID   string `yaml:"id"`
	Name string `yaml:"title"`
}

Generic Category Data Model

type EnvFile added in v0.0.15

type EnvFile struct {
	Port                   int  `ini:"FLARE_PORT,omitempty"`
	EnableGuide            bool `ini:"FLARE_GUIDE,omitempty"`
	EnableEditor           bool `ini:"FLARE_EDITOR,omitempty"`
	EnableOfflineMode      bool `ini:"FLARE_OFFLINE,omitempty"`
	EnableMinimumRequest   bool `ini:"FLARE_MINI_REQUEST,omitempty"`
	EnableDeprecatedNotice bool `ini:"FLARE_DEPRECATED_NOTICE,omitempty"`

	Visibility       string `ini:"FLARE_VISIBILITY,omitempty"`
	DisableLoginMode bool   `ini:"FLARE_DISABLE_LOGIN,omitempty"`
	User             string `ini:"FLARE_USER,omitempty"`
	Pass             string `ini:"FLARE_PASS,omitempty"`
}

Application Envfile Data Model

type Envs added in v0.0.4

type Envs struct {
	Port                   int  `env:"FLARE_PORT"`
	EnableGuide            bool `env:"FLARE_GUIDE"`
	EnableEditor           bool `env:"FLARE_EDITOR"`
	EnableOfflineMode      bool `env:"FLARE_OFFLINE"`
	EnableMinimumRequest   bool `env:"FLARE_MINI_REQUEST"`
	EnableDeprecatedNotice bool `env:"FLARE_DEPRECATED_NOTICE"`

	Visibility       string `env:"FLARE_VISIBILITY"`
	DisableLoginMode bool   `env:"FLARE_DISABLE_LOGIN"`
	User             string `env:"FLARE_USER,unset"`
	Pass             string `env:"FLARE_PASS,unset"`
}

Application Envs Data Model

type Flags added in v0.0.4

type Flags struct {
	DebugMode   bool
	ShowVersion bool
	ShowHelp    bool

	Port                   int
	EnableGuide            bool
	EnableEditor           bool
	EnableOfflineMode      bool
	EnableMinimumRequest   bool
	EnableDeprecatedNotice bool

	Visibility       string
	DisableLoginMode bool
	User             string
	Pass             string
	UserIsGenerated  bool
	PassIsGenerated  bool
}

Application Flags Data Model

type Page added in v0.0.4

type Page struct {
	Title string `json:"Title"`
	Name  string `json:"Name"`
	Path  string `json:"Path"`
	Alias string `json:"Alias"`
}

Page Data Model

type Palette

type Palette struct {
	Background string `json:"background"`
	Primary    string `json:"primary"`
	Accent     string `json:"accent"`
}

Theme color Data Model

type RouteMaps added in v0.0.4

type RouteMaps struct {
	// Pages
	Home         Page `json:"Home"`
	Applications Page `json:"Applications"`
	Bookmarks    Page `json:"Bookmarks"`
	Help         Page `json:"Help"`
	Guide        Page `json:"Guide"`
	Editor       Page `json:"Editor"`
	Icons        Page `json:"Icons"`
	Preview      Page `json:"Preview"`

	// Settings Pages
	Settings   Page `json:"Settings"`
	Theme      Page `json:"Theme"`
	Weather    Page `json:"Weather"`
	Search     Page `json:"Search"`
	Appearance Page `json:"Appearance"`
	Others     Page `json:"Others"`

	// Auth API
	Login  API `json:"Login"`
	Logout API `json:"Logout"`

	// Misc
	RedirHome   Page `json:"RedirHome"`
	RedirHelper API  `json:"RedirHelper"`
	WeatherTest API  `json:"WeatherTest"`
	HealthCheck API  `json:"HealthCheck"`
}

Route Map for Web Server

type Theme

type Theme struct {
	Name   string  `json:"name"`
	Colors Palette `json:"colors"`
}

Theme Data Model

type Weather added in v0.0.5

type Weather struct {
	ExternalLastUpdate string `json:"externalLastUpdate"`
	Degree             int    `json:"degree"`
	IsDay              bool   `json:"isDay"`
	ConditionText      string `json:"conditionText"`
	ConditionCode      string `json:"conditionCode"`
	Humidity           int    `json:"humidity"`
	Expires            int64  `json:"expires"`
	Location           string `json:"location"`
}

Weather Data Model

Jump to

Keyboard shortcuts

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