INNER CODE UNIT · Go

main

andrearaponi/dito · cmd/main.go:27

func main() {
	// Define a flag to enable the profiler
	enableProfiler := flag.Bool("enable-profiler", false, "enable the profiler")

	// Define a flag for the configuration file path
	configFile := flag.String("f", "config.yaml", "path to the configuration file")
	flag.Parse()

	// Check if the configuration file exists
	if _, err := os.Stat(*configFile); os.IsNotExist(err) {
		log.Fatalf("Configuration file not found: %s", *configFile)
	}

	// Load and set the configuration
	config.LoadAndSetConfig(*configFile)
	logger := logging.InitializeLogger(config.GetCurrentProxyConfig().Logging.Level)

	// Initialize metrics system

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…