settings

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: AGPL-3.0 Imports: 7 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 Index

func Index()

Index reads all settings from the db.

func NetworkPort

func NetworkPort() uint

func SetSettings

func SetSettings(settings types.Settings)

func SiteDescriptionHTML

func SiteDescriptionHTML() template.HTML

func SiteDescriptionMycomarkup

func SiteDescriptionMycomarkup() string

func SiteName

func SiteName() string

func SiteTitle

func SiteTitle() template.HTML

Types

type NullInt64Port

type NullInt64Port sql.NullInt64

func (NullInt64Port) SetNetworkPort

func (port NullInt64Port) SetNetworkPort()

func (NullInt64Port) ValidatePort

func (port NullInt64Port) ValidatePort() uint

type Uintport

type Uintport uint

func (Uintport) SetNetworkPort

func (port Uintport) SetNetworkPort()

func (Uintport) ValidatePort

func (port Uintport) ValidatePort() uint

Jump to

Keyboard shortcuts

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