settings

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package settings provides intermediary access to settings of a Betula instance. It handles DB interaction for you. Make sure access to it is initialized.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminUsername added in v1.2.0

func AdminUsername() string

func CustomCSS added in v1.0.0

func CustomCSS() string

func FederationEnabled added in v1.2.0

func FederationEnabled() bool

func Index

func Index()

Index reads all settings from the db.

func NetworkHost added in v1.0.0

func NetworkHost() string

func NetworkPort

func NetworkPort() uint

func SetSettings

func SetSettings(settings types.Settings)

func SiteDescriptionHTML

func SiteDescriptionHTML() template.HTML

func SiteDescriptionMycomarkup

func SiteDescriptionMycomarkup() string

func SiteDomain added in v1.2.0

func SiteDomain() string

func SiteName

func SiteName() string

func SiteTitle

func SiteTitle() template.HTML

func SiteURL added in v0.8.0

func SiteURL() string

func ValidatePortFromWeb added in v1.0.0

func ValidatePortFromWeb[N ~int | uint](port N) uint

func WritePort added in v1.0.0

func WritePort(port uint)

Types

This section is empty.

Jump to

Keyboard shortcuts

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