Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ArmorContext context.Context IsRelease bool InitCalled bool CleanupLogger func() )
Functions ¶
func InitArmor ¶
func InitArmor[T util.Configuration](isRelease bool, minLevel zapcore.Level, config *T, configPath string) error
InitArmor initializes the application's configuration and logging based on the release mode.
Parameters:
- isRelease: Indicates whether the application is running in release mode (true) or not (false).
- minLevel: The minimum logging level to be used (e.g., zapcore.InfoLevel).
- config: A pointer to the configuration struct to be populated.
- configPath: The path to the configuration file (used in non-release mode). e.g. config.local.json
Returns:
- An error if there's an issue loading configuration or environment variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.