config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetIconPath added in v1.2.0

func GetIconPath(icon string) string

func UpdateIconPaths added in v1.2.0

func UpdateIconPaths()

func UpdateIcons added in v1.1.0

func UpdateIcons(refresh bool)

Types

type App added in v1.1.0

type App struct {
	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
	Static StaticConfiguration
}

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

type StaticConfiguration added in v1.2.0

type StaticConfiguration struct {
	Apps []m.ContainerInfo
}

Jump to

Keyboard shortcuts

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