cfg

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WebRoot   string
	HTTP      ConfigHTTP
	HTTPS     ConfigHTTPS
	Overwrite ConfigOverwrite
	SiteMap   ConfigSiteMap
	Page      ConfigPage
}

func Read

func Read(path string) (Config, error)

type ConfigHTTP

type ConfigHTTP struct {
	Enable bool
	Port   string
}

type ConfigHTTPS

type ConfigHTTPS struct {
	Enable bool
	Port   string
	Cert   string
	Key    string
}

type ConfigOverwrite added in v1.2.0

type ConfigOverwrite struct {
	Host     string
	Protocol string
}

type ConfigPage added in v1.3.0

type ConfigPage struct {
	AutoTitle         ConfigPageAutoTitle
	AddToHead         []string
	EnableBuiltInVars bool
}

type ConfigPageAutoTitle added in v1.3.0

type ConfigPageAutoTitle struct {
	Enable bool
	Prefix string
	Sufix  string
}

type ConfigSiteMap added in v1.2.0

type ConfigSiteMap struct {
	Enable     bool
	URL        string
	SkipHidden bool
}

Jump to

Keyboard shortcuts

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