Documentation
¶
Index ¶
- func ConfigCandidatePaths(userPath string) (jsonPaths, yamlPaths, tomlPaths []string)
- func DefaultConfigDir() (string, error)
- func DefaultConfigPath(format string) (string, error)
- func DefaultNamedConfigPath(baseName, format string) (string, error)
- func EnsureDir(filePath string) error
- func KeyFileDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigCandidatePaths ¶
ConfigCandidatePaths builds candidate paths for config files per format. If userPath is provided, it is prioritized and routed to the matching loader by extension.
func DefaultConfigDir ¶
DefaultConfigDir returns the platform-specific configuration directory for VIIPER.
func DefaultConfigPath ¶
DefaultConfigPath returns the default config file path for the given format using base name "config".
func DefaultNamedConfigPath ¶
DefaultNamedConfigPath returns the default config file path for the given format and base name (e.g., "server").
func KeyFileDir ¶ added in v0.4.1
KeyFileDir returns the directory where the API key file should be stored. On Unix, root services use /etc/viiper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.