# Functions
HasDefaults allows a nil config for apps that have a valid default configuration, and otherwise performs config health checking, including: * does the config struct embed health.Disabled? * are there any validation errors (via go-playground/validator)? * is the app disabled via config?.
RequiresConfig rejects a nil config for apps that don't (or cannot) have a valid default configuration, and otherwise performs config health checking, including: * does the config struct embed health.Disabled? * are there any validation errors (via go-playground/validator)? * is the app disabled via config?.
ValidationErrorsToErrorSlice converts a goValidator.ValidationErrors to an array of standard Go errors, for easy use with external libraries that support arrays of stdlib errors.
# Constants
StatusDisabled is returned when an app config was provided, but the disabled field was set to 'true'.
StatusInternalError is returned when something goes wrong in the implementation of thcon -- typically when a non-nil config struct doesn't embed health.Disabled.
StatusMissingConfig is returned when no app config was provided for an app that doesn't (or cannot) have a valid default configuration.
StatusNotInstalled is returned when the application isn't installed.
StatusNotOk is returned when an app is not disabled and has validation errors.
StatusOk is returned when the provided app config is healthy, and that the relevant app can be switched.
# Structs
Disabled is an struct that must be embedded in any other application config struct.
# Type aliases
Status is the general result of config health checking.