config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config Configuration
	Logger *log.Logger
	Index  IconIndex = IconIndex{}
)

Functions

func UpdateIcons added in v1.1.0

func UpdateIcons(refresh bool)

Types

type App added in v1.1.0

type App struct {
	// AppID           string `json:"appid"`
	// Enhanced        bool   `json:"enhanced"`
	// TitleBackground string `json:"title_background"`
	// SHA             string `json:"sha"`
	Icon        string `json:"icon"`
	IconName    string `json:"icon_name"`
	Name        string `json:"name"`
	Website     string `json:"website"`
	License     string `json:"license"`
	Description string `json:"description"`
}

type AppList added in v1.1.0

type AppList struct {
	AppCount int   `json:"appcount"`
	Apps     []App `json:"apps"`
}

type Configuration

type Configuration struct {
	Global GlobalConfiguration
	Cors   CorsConfiguration
	Icons  IconConfiguration
}

type CorsConfiguration

type CorsConfiguration struct {
	AllowedOrigins   []string
	AllowCredentials bool
	AllowedHeaders   []string
	AllowedMethods   []string
	Debug            bool
}

type GlobalConfiguration

type GlobalConfiguration struct {
	Debug               bool
	ServerAddress       string
	ServerPort          string
	MaxAgeBeforeCleanup int
	CleanCheckInterval  int
}

GlobalConfig holds global configuration items

type IconConfiguration added in v1.1.0

type IconConfiguration struct {
	CacheDir string
	TmpDir   string
}

type IconIndex added in v1.1.0

type IconIndex map[string]string

Jump to

Keyboard shortcuts

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