config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *Config) error

Init initializes the global configuration using the provided parameters. It returns an error if required parameters are missing.

Types

type Config

type Config struct {
	// Required: The environment in which the app is running (e.g., "development", "production").
	Environment string
	// Optional: The log level (e.g., "DEBUG", "INFO", "WARN", "ERROR"). Defaults to "INFO" if not set.
	LogLevel string
	// Optional: Sentry DSN for future integration.
	SentryDSN string
	// Required: Slack Incoming Webhook URL for sending notifications.
	SlackWebhookURL string
}

Config holds configuration settings for Zohan.

var GlobalConfig *Config

GlobalConfig holds the application-wide configuration.

Jump to

Keyboard shortcuts

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