config

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	CustomHtml string `mapstructure:"customHtml" json:"customHtml"`
	Title      string `mapstructure:"title" json:"title"`
	Subtitle   string `mapstructure:"subtitle" json:"subtitle"`
	ShowGithub bool   `mapstructure:"showGithub" json:"showGithub"`
	LogoUrl    string `mapstructure:"logoUrl" json:"logoUrl"`
	Disclaimer string `mapstructure:"disclaimer" json:"disclaimer"`
	Debug      bool   `mapstructure:"debug" json:"debug"`
}

type AppConfiguration

type AppConfiguration interface {
	*Configuration
}

type Configuration

type Configuration struct {
	Server `mapstructure:"server" json:"server"`
	App    `mapstructure:"app" json:"app"`
	Dev    `mapstructure:"dev" json:"dev"`
	Data   `mapstructure:"data" json:"data"`
}

func Load

func Load(path string) (*Configuration, error)

type Data

type Data struct {
	Groups []Group `mapstructure:"groups" json:"groups"`
	Links  []Link  `mapstructure:"links" json:"links"`
	Footer Footer  `mapstructure:"footer" json:"footer"`
}

type Dev

type Dev struct {
	Mode bool `mapstructure:"mode" json:"mode"`
}
type Footer struct {
	Links []Link `mapstructure:"links" json:"links"`
}

type Group

type Group struct {
	Caption  string    `mapstructure:"caption" json:"caption"`
	Links    []Link    `mapstructure:"links" json:"links"`
	Sections []Section `mapstructure:"sections" json:"sections"`
}
type Link struct {
	Caption string `mapstructure:"caption" json:"caption"`
	URL     string `mapstructure:"url" json:"url"`
	Icon    string `mapstructure:"icon" json:"icon"`
	NewTab  bool   `mapstructure:"newTab" json:"newTab"`
	Links   []Link `mapstructure:"links" json:"links"`
}

type Section

type Section struct {
	Caption string `mapstructure:"caption" json:"caption"`
	Links   []Link `mapstructure:"links" json:"links"`
}

type Server

type Server struct {
	Port   int    `mapstructure:"port" json:"port"`
	Secure bool   `mapstructure:"secure" json:"secure"`
	Tz     string `mapstructure:"tz" json:"tz"`
}

Jump to

Keyboard shortcuts

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