serverutil

package
v0.0.0-...-2e32b89 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WEB_METADATA_PATH = "./config/websites.json"
)

Variables

This section is empty.

Functions

func WebAbs

func WebAbs(relpath string) string

Types

type ConstantsConfig

type ConstantsConfig struct {
	SiteMetaData SiteConfig
}
var (
	// Ensure files only have to be read once
	CONFIG_READ_MUTEX sync.Mutex
	CONFIG            *ConstantsConfig
)

func GetConfig

func GetConfig() *ConstantsConfig

type SiteConfig

type SiteConfig struct {
	SitePath map[string]WebPageTemplate
}

type WebPageTemplate

type WebPageTemplate struct {
	PageTitle       string
	PageIcon        string
	MetaTitle       string
	MetaDescription string
	MetaVideo       string
	MetaType        string
	MetaImage       string
	MetaUrl         string
	TwitterUsername string
	MetaKeywords    string
}

Jump to

Keyboard shortcuts

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