config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerPort    int
	TransportMode string
	LogLevel      string
	DBConfig      DatabaseConfig    // Legacy single database config
	MultiDBConfig *db.MultiDBConfig // New multi-database config
	DBConfigFile  string            // Path to database configuration file
}

Config holds all server configuration

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig loads the configuration from environment variables and optional JSON config

type DatabaseConfig

type DatabaseConfig struct {
	Type     string
	Host     string
	Port     int
	User     string
	Password string
	Name     string
}

DatabaseConfig holds database configuration (legacy support)

Jump to

Keyboard shortcuts

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