Documentation ¶
Overview ¶
Package directory contains logic for serving the homelab index page.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Items []Item `yaml:"items"`
}
The Config type represents the YAML configuration file for links to display on the index page.
func LoadConfig ¶
LoadConfig attempts to load the index page configuration located at the provided path. Returns an error if it does not exist or is an invalid YAML configuration.
type HTTP ¶
The HTTP type is responsible for handling HTTP requests for the index page.
func NewHTTP ¶
NewHTTP returns a new instance of the HTTP type that will render the index page with the provided configuration items. Items are sorted alphabetically by name.
Click to show internal directories.
Click to hide internal directories.