setting

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package setting exposes process-level configuration helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCDNURL added in v0.1.1

func GetCDNURL() string

GetCDNURL returns the configured CDN base URL.

func GetRunTime

func GetRunTime() time.Duration

GetRunTime returns the duration since application startup.

func GetStart added in v0.0.8

func GetStart() time.Time

GetStart returns the application startup time.

func GetStorage

func GetStorage() string

GetStorage returns the default storage directory.

func GetTmp

func GetTmp() string

GetTmp returns the default temporary storage directory.

func GetUnitTime

func GetUnitTime() time.Duration

GetUnitTime returns the duration since the previous GetUnitTime call.

func IsDebug

func IsDebug() bool

IsDebug reports whether debug mode is enabled.

func IsLocal added in v0.0.9

func IsLocal() bool

IsLocal reports whether the application runs in local development mode.

func IsProduction

func IsProduction() bool

IsProduction reports whether the application runs in production mode.

func URL

func URL(path string) string

URL joins path to the configured site URL.

func UseMigration

func UseMigration() bool

UseMigration reports whether database migrations are enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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