safemode

package
v7.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleAPIKeys

func ExampleAPIKeys(keys []string) []string

ExampleAPIKeys returns configured top-level API keys that still use template values.

func HasExampleAPIKeys

func HasExampleAPIKeys(keys []string) bool

HasExampleAPIKeys reports whether any configured top-level API key is a template value.

func NewExampleAPIKeyWarningHandler

func NewExampleAPIKeyWarningHandler(configPath string, keys []string) http.Handler

NewExampleAPIKeyWarningHandler serves a setup warning page and leaves all other routes unregistered.

func StartExampleAPIKeyWarningServer

func StartExampleAPIKeyWarningServer(ctx context.Context, cfg *config.Config, configPath string, keys []string) error

StartExampleAPIKeyWarningServer starts the warning-only HTTP(S) server and blocks until it stops.

func WarningServerURL

func WarningServerURL(cfg *config.Config) string

WarningServerURL returns a local-friendly URL for the warning-only server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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