Documentation
¶
Index ¶
- func ExampleAPIKeys(keys []string) []string
- func HasExampleAPIKeys(keys []string) bool
- func NewExampleAPIKeyWarningHandler(configPath string, keys []string) http.Handler
- func StartExampleAPIKeyWarningServer(ctx context.Context, cfg *config.Config, configPath string, keys []string) error
- func WarningServerURL(cfg *config.Config) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExampleAPIKeys ¶
ExampleAPIKeys returns configured top-level API keys that still use template values.
func HasExampleAPIKeys ¶
HasExampleAPIKeys reports whether any configured top-level API key is a template value.
func NewExampleAPIKeyWarningHandler ¶
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 ¶
WarningServerURL returns a local-friendly URL for the warning-only server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.