config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Vendor = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Locations []Location `yaml:"locations"`
}

AppConfig defines server configuration

func NewAppConfig

func NewAppConfig(root string) *AppConfig

NewAppConfig returns server configuration that is defined by root or (if root is empty) loaded from configuration files

type Location

type Location struct {
	Path string `yaml:"path"`
	Root string `yaml:"root"`
}

Location defines a directory to serve

Jump to

Keyboard shortcuts

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