config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyPasskeysDisabled    = "passkeys.disabled"
	DefaultCookieLifetime  = "session.cookie.timeout"
	DefaultSessionLifetime = "session.timeout"

	AttachUsernameAuthResponseHeader = "auth.attach_username_header"
	AttachUserIDAuthResponseHeader   = "auth.attach_userid_header"

	DisableSecurityHeaders = "security.disable_headers"
)

Variables

View Source
var (
	Lock sync.RWMutex

	DebugFlagOverride uint32
)

Functions

func EnableDebugPage

func EnableDebugPage() bool

func Init

func Init() error

func IsDebugLoggingEnabled

func IsDebugLoggingEnabled() bool

func IsDocker

func IsDocker() bool

func IsProductionMode

func IsProductionMode() bool

func RegisterForUpdates

func RegisterForUpdates(listener UpdateListener)

func RunErrorServer

func RunErrorServer(errorsFound []string)

func ValidateConfig

func ValidateConfig() []string

func WriteCurrentConfigState

func WriteCurrentConfigState(overrides ...WriteOverride) error

Types

type UpdateListener

type UpdateListener func(event fsnotify.Event)

type WriteOverride

type WriteOverride struct {
	Key   string
	Value any
}

Jump to

Keyboard shortcuts

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