config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 8 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
	ConfigPath     string            // Path to the configuration file
	DisableLogging bool              // When true, disables logging in stdio/SSE transport
}

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