armor

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 3 Imported by: 0

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.

Directories

Path Synopsis
gcp
jwt

Jump to

Keyboard shortcuts

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